/* 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);
}

.btn-primary-small {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: #f97316;
    color: white;
    padding: 0.6rem 1.5rem;
    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-small:hover {
    background-color: #db6816;
    transform: scale(1.05);
    box-shadow: 0 8px 12px rgba(0, 0, 0, 0.15);
}

.btn-secondary-small {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: #1e3a8a;
    color: white;
    padding: 0.6rem 1.5rem;
    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-small: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 {
    min-height: 100dvh; /* Use dynamic viewport height for better mobile centering */
}

/*
  This keyframe moves the content block from a starting position
  completely below the viewport to an ending position completely
  above it.
*/
@keyframes floatAndReset {
    /* Starts with the content completely below the container */
    from {
        transform: translateY(100%);
    }

    /* Ends with the content completely above the container */
    to {
        transform: translateY(-100%);
    }
}

.updates-content-wrapper {
    /* These properties are correct */
    position: absolute;
    left: 1.5rem;
    right: 1.5rem;
    display: flex;
    flex-direction: column;

    /* The 'infinite' keyword handles the instant reset.
      After the animation reaches the 'to' state, it immediately
      jumps back to the 'from' state for the next loop.
    */
    animation: floatAndReset 17s linear infinite;
}

.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;
    }
}

/* 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;
}
.password-toggle-btn {
    position: absolute;
    right: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    height: 100%;
    background: none;
    border: none;
    cursor: pointer;
    color: #6b7280;
    transition: color 0.2s;
    font-size: 0.875rem; /* text-sm */
    font-weight: 500;
}
.password-toggle-btn:hover {
    color: #1f2937;
}

/* === FINAL, SCOPED STYLES FOR REDESIGNED COURSES SECTION === */
.final-course-section-container {
    padding: 2rem;
}

.final-course-image-wrapper {
    perspective: 1000px; /* Adds a 3D space for the hover effect */
    display: flex;
    justify-content: center;
    align-items: center;
}

.final-course-image-wrapper img {
    width: 100%;
    max-width: 400px; /* Controls max size of the image */
    height: auto;
    border-radius: 1rem; /* 16px */
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    transition: transform 0.4s ease-out, box-shadow 0.4s ease-out;
}

.final-course-image-wrapper:hover img {
    transform: translateY(-10px) rotateY(-5deg) rotateX(3deg) scale(1.05);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.final-course-text-wrapper {
    text-align: left;
}

.final-course-features-list {
    list-style: none;
    padding: 0;
    margin-top: 1.5rem;
    space-y: 1rem;
}

.final-course-features-list li {
    display: flex;
    align-items: center;
    font-size: 1rem;
    color: #374151; /* text-gray-700 */
    font-weight: 500;
}

.final-course-features-list li span {
    margin-right: 0.75rem; /* space between checkmark and text */
    font-weight: bold;
}

/* Responsive adjustments for the text content on mobile */
@media (max-width: 1023px) {
    .final-course-text-wrapper {
        text-align: center;
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    .final-course-features-list {
        display: inline-block;
        text-align: left;
        margin-top: 1.5rem;
    }
}