/* Custom Scrollbar for a more refined look */
body {
    scrollbar-width: thin;
    scrollbar-color: #f97316 #d1d5db;
    overflow-x: hidden;
}


body::-webkit-scrollbar {
    width: 12px;
}

body::-webkit-scrollbar-track {
    background: #d1d5db;
    border-radius: 10px;
}

body::-webkit-scrollbar-thumb {
    background-color: #f97316;
    border-radius: 10px;
    border: 3px solid #d1d5db;
}

html {
    scroll-behavior: smooth;
}

/* Header Link Hover Animation */
.header-link {
    position: relative;
    transition: color 0.3s ease, transform 0.2s ease;
}

.header-link:hover {
    color: #f97316;
    transform: translateY(-2px);
}

.header-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 50%;
    background-color: #f97316;
    transition: width 0.3s ease, left 0.3s ease;
}

.header-link:hover::after {
    width: 100%;
    left: 0;
}

/* Common Button Styles */
.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: #f97316;
    color: white;
    padding: 0.75rem 2rem;
    font-weight: 600;
    border-radius: 9999px;
    transition: all 0.3s ease-in-out;
    transform: scale(1);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.btn-primary:hover {
    background-color: #db6816;
    transform: scale(1.05);
    box-shadow: 0 8px 12px rgba(0, 0, 0, 0.15);
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: #1e3a8a;
    color: white;
    padding: 0.75rem 2rem;
    font-weight: 600;
    border-radius: 9999px;
    transition: all 0.3s ease-in-out;
    transform: scale(1);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.btn-secondary:hover {
    background-color: #1a3274;
    transform: scale(1.05);
    box-shadow: 0 8px 12px rgba(0, 0, 0, 0.15);
}

/* Full-screen Hero Section */
.hero-full-screen {
    height: 100vh;
}

/* Updates & Announcements Section Animation */
.updates-container {
    position: relative;
    height: 350px;
    padding: 1.5rem;
}

@keyframes floatUpdatesVertical {
    0% {
        transform: translateY(0);
    }

    100% {
        transform: translateY(-100%);
    }
}

.updates-content-wrapper {
    display: flex;
    flex-direction: column;
    animation: floatUpdatesVertical 25s linear infinite;
    animation-delay: 0s;
}

.updates-content-wrapper:hover {
    animation-play-state: paused;
}

.update-item {
    font-size: 1rem;
    font-weight: 500;
    color: #1e3a8a;
    margin-bottom: 1rem;
    padding: 0.75rem;
    background-color: #f8f9fa;
    border-radius: 0.5rem;
    border-left: 4px solid #f97316;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    transition: transform 0.2s ease-in-out;
}

.update-item:hover {
    transform: translateX(5px);
}

.update-item:last-child {
    margin-bottom: 0;
}

/* Features Section Cards */
.feature-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    background-color: #f8f9fa;
    border-radius: 1rem;
    padding: 2rem 1.5rem;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease-in-out;
    cursor: pointer;
    border: 1px solid transparent;
}

.feature-card:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.12);
    border-color: #f97316;
}

.feature-card span {
    color: #f97316;
    margin-bottom: 0.5rem;
    transition: transform 0.3s ease-in-out;
}

.feature-card:hover span {
    transform: scale(1.1);
}

/* Campus Card Overlay */
.campus-initial-content,
.campus-card-overlay {
    transition: opacity 0.3s ease-in-out, transform 0.3s ease-in-out;
}

.campus-card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background-color: rgba(255, 255, 255, 0.95);
    border-radius: 1rem;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.group:hover .campus-initial-content {
    opacity: 0;
    transform: scale(0.9);
}

.group:hover .campus-card-overlay {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: scale(1);
}

.campus-zone-button {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    padding: 0.35rem 0.75rem; /* Smaller size */
    margin: 0.4rem; /* Space from all sides */
    border-radius: 0.4rem;
    font-weight: 600;
    font-size: 0.7rem;
    text-align: center;
    white-space: nowrap;
    background-color: #f0f2f5;
    color: #1e3a8a;
    border: 2px solid transparent;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
    transition: background-color 0.25s ease, color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease, border-color 0.25s ease;
}

.campus-zone-button:hover {
    background-color: #f97316;
    color: white;
    border-color: #f97316;
    transform: translateY(-1px) scale(1.02);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.12);
}

@media (min-width: 768px) {
    .campus-zone-button {
        font-size: 0.78rem;
        padding: 0.4rem 0.9rem;
    }
}



.course-section-description {
    font-size: 1.25rem;
    line-height: 1.8rem;
    text-align: left;
}

/* New Course Section Design */
.course-section-image {
    width: 65%;
    align-self: center; /* Corrected spelling of 'align-self' */
    height: auto;
    border-radius: 1rem;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease-in-out;
}


.course-section-image:hover {
    transform: scale(1.02);
}

/* Community Card Style */
.community-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 2rem;
    background-color: #f8f9fa;
    border-radius: 1rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    border-top: 4px solid #f97316;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.community-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}

.community-card span {
    color: #f97316;
    margin-bottom: 0.5rem;
}

/* Social Media Links */
.social-link {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    border-radius: 9999px;
    color: white;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease-in-out;
}

.social-link:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 8px 12px rgba(0, 0, 0, 0.15);
}

.social-link.instagram {
    background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
}

.social-link.youtube {
    background-color: #ff0000;
}

.social-link.youtube:hover {
    background-color: #cc0000;
}

.social-link.whatsapp {
    background-color: #25d366;
}

.social-link.whatsapp:hover {
    background-color: #128c7e;
}

.social-link.telegram {
    background-color: #0088cc;
}

.social-link.telegram:hover {
    background-color: #006080;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.7);
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}

.modal.is-open {
    display: flex;
    opacity: 1;
}

.modal-content {
    background-color: #ffffff;
    margin: auto;
    padding: 2.5rem;
    border-radius: 1rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
    width: 90%;
    max-width: 800px;
    position: relative;
    max-height: 90vh;
    overflow-y: auto;
    transform: scale(0.95);
    transition: transform 0.3s ease-in-out;
}

.modal.is-open .modal-content {
    transform: scale(1);
}

.close-btn {
    color: #f97316;
    position: absolute;
    font-size: 2.5rem;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.2s;
    top: 0.5rem;
    right: 1rem;
    background: none;
    border: none;
    outline: none;
    line-height: 1;
}

.close-btn:hover,
.close-btn:focus {
    color: #db6816;
}