:root {
    --primary-color: #8b2525;
    --primary-dark: #6a1c1c;
    --primary-light: #c93e3e;
    --secondary-color: #f0c060;
    --secondary-light: #ffe7b3;
    --text-color: #333;
    --light-bg: #f8f9fa;
    --white: #ffffff;
    --shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    --gradient: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    color: var(--text-color);
    line-height: 1.6;
}

header {
    background-color: var(--primary-dark);
    color: var(--white);
    padding: 1rem 0;
    text-align: center;
    position: relative;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--white);
    text-decoration: none;
}

/* Language Switcher Styles */
.lang-switcher {
    display: flex;
    gap: 10px;
    align-items: center;
}

.lang-btn {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 5px 12px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.lang-btn:hover {
    background: rgba(255, 255, 255, 0.2);
}

.lang-btn.active {
    background: var(--secondary-color);
    color: var(--primary-dark);
    font-weight: bold;
    border-color: var(--secondary-color);
}

nav ul {
    display: flex;
    list-style: none;
}

nav ul li {
    margin-left: 1.5rem;
}

nav ul li a {
    color: var(--white);
    text-decoration: none;
    transition: color 0.3s;
}

nav ul li a:hover {
    color: var(--secondary-color);
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: var(--white);
    font-size: 1.5rem;
    cursor: pointer;
}

.hero {
    background: linear-gradient(rgba(106, 28, 28, 0.8), rgba(106, 28, 28, 0.8)), url('/api/placeholder/1200/400') center/cover no-repeat;
    color: var(--white);
    text-align: center;
    padding: 5rem 2rem;
}

.hero h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.hero p {
    font-size: 1.2rem;
    max-width: 800px;
    margin: 0 auto 2rem;
}

.cta-button {
    display: inline-block;
    padding: 0.8rem 2rem;
    background-color: var(--secondary-color);
    color: var(--primary-dark);
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: background-color 0.3s;
    cursor: pointer;
}

.cta-button:hover {
    background-color: var(--secondary-light);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 3rem 2rem;
}

.course-overview {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.overview-item {
    background-color: var(--light-bg);
    padding: 1.5rem;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s;
}

.overview-item:hover {
    transform: translateY(-5px);
}

.overview-item h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
}

.overview-item h3 i {
    margin-right: 0.5rem;
}

.section-title {
    text-align: center;
    margin-bottom: 2rem;
    font-size: 2rem;
    color: var(--primary-dark);
    position: relative;
}

.section-title:after {
    content: "";
    display: block;
    width: 80px;
    height: 4px;
    background-color: var(--secondary-color);
    margin: 0.5rem auto 0;
}

.eligibility-list,
.highlights-list {
    margin-bottom: 2rem;
}

.eligibility-list li,
.highlights-list li {
    margin-bottom: 0.8rem;
    padding-left: 1.5rem;
    position: relative;
}

.eligibility-list li:before,
.highlights-list li:before {
    content: "✓";
    color: var(--primary-color);
    position: absolute;
    left: 0;
}

.fee-structure {
    background-color: var(--light-bg);
    padding: 2rem;
    border-radius: 5px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.fee-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
}

.fee-table th,
.fee-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

.fee-table th {
    background-color: var(--primary-color);
    color: var(--white);
}

.fee-table tr:hover {
    background-color: rgba(201, 62, 62, 0.1);
}

.accordion {
    margin-top: 3rem;
}

.accordion-item {
    margin-bottom: 1rem;
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.accordion-header {
    padding: 1.5rem;
    background: var(--gradient);
    color: var(--white);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: bold;
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

.accordion-header:hover {
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary-color) 100%);
    transform: translateY(-2px);
}

.toggle-icon {
    font-size: 1.5rem;
    transition: transform 0.3s ease;
}

.active .toggle-icon {
    transform: rotate(45deg);
}

.accordion-content {
    padding: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    background: var(--white);
}

.accordion-content-inner {
    padding: 2rem;
}

.active .accordion-content {
    max-height: 2000px;
}

/* Enhanced Faculty Section Styles */
.faculty-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.2rem;
    margin-top: 1.5rem;
}

.faculty-card {
    background: var(--white);
    border-radius: 8px;
    padding: 1.2rem;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(139, 37, 37, 0.1);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    text-align: center;
}

.faculty-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient);
}

.faculty-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 20px rgba(139, 37, 37, 0.12);
}

.faculty-avatar {
    width: 50px;
    height: 50px;
    background: var(--gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: var(--white);
    margin: 0 auto 1rem;
    font-weight: bold;
    overflow: hidden;
}

.faculty-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.faculty-name {
    font-size: 1rem;
    font-weight: bold;
    color: var(--primary-dark);
    margin-bottom: 0.3rem;
    line-height: 1.3;
}

.faculty-role {
    color: var(--primary-color);
    font-weight: 500;
    margin-bottom: 0.6rem;
    font-size: 0.8rem;
}

.faculty-qualifications {
    color: #666;
    font-size: 0.75rem;
    line-height: 1.4;
    margin-bottom: 0.8rem;
}

.faculty-specialization {
    display: inline-block;
    background: rgba(139, 37, 37, 0.1);
    color: var(--primary-color);
    padding: 0.2rem 0.6rem;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: 500;
}

@media screen and (max-width: 768px) {
    .header-content {
        flex-direction: column;
        gap: 15px;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .course-overview {
        grid-template-columns: 1fr;
    }
}

/* Section Mic Button */
.section-mic-btn {
    background: var(--gradient);
    color: white;
    border: 2px solid var(--secondary-color);
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    margin-left: 15px;
    vertical-align: middle;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    padding: 0;
    flex-shrink: 0;
}

.section-mic-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(139, 37, 37, 0.3);
}

.section-mic-btn.loading {
    background: #fff;
    color: var(--primary-color);
    position: relative;
}

.section-mic-btn.loading::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border: 3px solid transparent;
    border-top-color: var(--secondary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.section-mic-btn.speaking {
    background: #fff;
    color: var(--primary-color);
    animation: pulse 1s infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

@keyframes pulse {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(139, 37, 37, 0.7);
    }

    70% {
        transform: scale(1.05);
        box-shadow: 0 0 0 10px rgba(139, 37, 37, 0);
    }

    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(139, 37, 37, 0);
    }
}


/* Fee Accordion Styles */
/* Fee Accordion Styles - Enhanced */
.fee-accordion {
    border: none;
    border-radius: 12px;
    overflow: hidden;
    margin-top: 25px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    /* More refined shadow */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background: #fff;
    cursor: default;
}

.fee-accordion:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

.fee-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    background: linear-gradient(145deg, #ffffff, #f0f2f5);
    /* Subtle gradient */
    border-left: 5px solid var(--primary-color);
    cursor: pointer;
    transition: background 0.3s ease;
}

.fee-header:hover {
    background: linear-gradient(145deg, #fafbfc, #eef0f3);
}

.fee-title-row {
    display: flex;
    justify-content: space-between;
    width: 100%;
    align-items: center;
    margin-right: 20px;
}

.fee-label {
    font-size: 1.25em;
    /* Slightly larger */
    font-weight: 700;
    color: var(--primary-color);
    letter-spacing: 0.5px;
}

.fee-amount-total {
    font-size: 1.3em;
    font-weight: 800;
    color: var(--text-color);
    background: linear-gradient(90deg, var(--primary-color), var(--primary-dark));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    /* Gradient text */
}

.toggle-icon {
    font-size: 1.2em;
    font-weight: bold;
    color: #fff;
    background-color: var(--secondary-color);
    /* Circle background */
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), background-color 0.3s;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.15);
}

/* Rotate animation logic handled by simple text change but we can add rotation to + */
/* Since JS changes text + to -, rotation is tricky without changing JS. 
   Enhanced visual: JS toggles opened class on header, we rotate.
   But current JS toggles text content.
   Let's keep the text toggle but animate the background/scale.
*/
.fee-header:hover .toggle-icon {
    transform: scale(1.1);
    background-color: var(--primary-light);
}

.fee-details {
    padding: 0 25px;
    background-color: #ffffff;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    /* Fade in effect */
    transition: max-height 0.5s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.4s ease, padding 0.4s ease;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.fee-details.open {
    padding: 25px;
    max-height: 600px;
    opacity: 1;
    border-top: 1px solid var(--secondary-light);
}

.fee-row {
    display: flex;
    justify-content: space-between;
    padding: 12px 15px;
    /* More breathing room */
    margin-bottom: 8px;
    border-radius: 8px;
    background-color: #f9f9fb;
    /* Zebra-like striping optional, here just card styled */
    border-bottom: none;
    /* Removed border */
    transition: transform 0.2s ease;
}

.fee-row:hover {
    transform: translateX(5px);
    background-color: #f0f4f8;
}

.fee-row:last-child {
    margin-bottom: 0;
}

.fee-row span:first-child {
    color: #555;
    font-weight: 600;
    font-size: 1.05em;
    display: flex;
    align-items: center;
}

/* Bullet point for items */
.fee-row span:first-child::before {
    content: '';
    display: inline-block;
    width: 8px;
    height: 8px;
    background-color: var(--secondary-color);
    border-radius: 50%;
    margin-right: 12px;
}

.fee-row span:last-child {
    font-weight: 700;
    color: #333;
    font-size: 1.1em;
}

/* Enhanced Animatic Fee Accordion */
.toggle-icon {
    font-size: 1.5em;
    /* Larger for better visibility */
    font-weight: 400;
    /* Lighter weight for modern look */
    color: #fff;
    background: linear-gradient(135deg, var(--secondary-color), #e0b050);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    transition: transform 0.4s cubic-bezier(0.68, -0.55, 0.27, 1.55), background 0.3s;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    cursor: pointer;
}

.fee-header.active .toggle-icon {
    transform: rotate(135deg);
    /* Crisp rotation */
    background: linear-gradient(135deg, var(--primary-color), #a22a2a);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    /* Inset/smaller shadow feel */
}

.fee-details {
    padding: 0 25px;
    background-color: #ffffff;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transform: translateY(-10px);
    /* Slide down effect */
    transition: max-height 0.5s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.4s ease, transform 0.4s ease, padding 0.4s ease;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.fee-details.open {
    padding: 25px;
    /* max-height is handled by JS for perfect smoothness */
    opacity: 1;
    transform: translateY(0);
    border-top: 1px solid var(--secondary-light);
}


/* Fix for Open State Max Height */
.fee-details.open {
    max-height: 2000px;
    /* Ensure content stays visible after JS transition */
}

/* Floating Decorations */
.hero {
    position: relative;
    overflow: hidden;
}

.floating-decor {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.floating-icon {
    position: absolute;
    color: rgba(255, 255, 255, 0.1);
    /* Very transparent */
    animation: float-around 15s infinite ease-in-out;
}

.floating-icon svg {
    width: 40px;
    height: 40px;
}

@keyframes float-around {
    0% {
        transform: translate(0, 0) rotate(0deg);
    }

    33% {
        transform: translate(30px, -20px) rotate(10deg);
    }

    66% {
        transform: translate(-20px, 30px) rotate(-10deg);
    }

    100% {
        transform: translate(0, 0) rotate(0deg);
    }
}

/* Specific Positions for Icons */
.icon-1 {
    top: 15%;
    left: 10%;
    animation-delay: 0s;
}

.icon-2 {
    top: 60%;
    left: 15%;
    animation-delay: -3s;
}

.icon-3 {
    top: 20%;
    right: 12%;
    animation-delay: -7s;
}

.icon-4 {
    top: 70%;
    right: 10%;
    animation-delay: -11s;
}

.icon-5 {
    top: 40%;
    left: 80%;
    animation-delay: -5s;
}

.icon-6 {
    top: 75%;
    left: 45%;
    animation-delay: -9s;
    opacity: 0.15;
}

.icon-7 {
    top: 10%;
    left: 40%;
    animation-delay: -2s;
}

.icon-8 {
    top: 50%;
    right: 25%;
    animation-delay: -14s;
}

.icon-9 {
    top: 80%;
    right: 40%;
    animation-delay: -6s;
}

.icon-10 {
    top: 30%;
    left: 60%;
    animation-delay: -10s;
}

/* Responsive Header */
@media screen and (max-width: 768px) {
    .header-content {
        flex-direction: column;
        gap: 15px;
    }
}

/* Explore Card in Grid */
.explore-card {
    padding: 0 !important;
    overflow: hidden;
    display: none;
    flex-direction: column;
    background: linear-gradient(135deg, var(--white) 0%, #f0f4f8 100%);
    border: 1px solid rgba(139, 37, 37, 0.1);
}

@media (orientation: portrait) {
    .explore-card {
        display: flex;
    }
}

.explore-card-img {
    flex: 1;
    overflow: hidden;
}



.explore-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.explore-card:hover .explore-card-img img {
    transform: scale(1.1);
}

.explore-card-text {
    padding: 1.5rem;
    text-align: center;
}

.explore-card-text h3 {
    margin-bottom: 0.5rem !important;
    justify-content: center;
}

@media screen and (max-width: 768px) {
    .explore-card {
        min-height: 350px;
    }
}