/* Offline styling configurations - external fonts import removed to prevent network lookup timeouts */

:root {
    --primary-color: #A11B5E; /* Rich Magenta Pink */
    --primary-rgb: 161, 27, 94;
    --primary-hover: #820f48;
    --primary-light: #FFF0F6;
    --accent-color: #D4AF37; /* Champagne Gold */
    --accent-hover: #bda030;
    --accent-light: #fef8e7;
    --text-dark: #1E1E24;
    --text-muted: #5E6073;
    --bg-light: #FAFAFC;
    --bg-white: #FFFFFF;
    --border-color: #E2E8F0;
    --success-color: #10B981;
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.05);
    --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -1px rgba(0,0,0,0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --font-heading: 'Outfit', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    --font-body: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

/* Global Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-light);
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Institutional Header Bar */
.institution-banner {
    background-color: var(--bg-white);
    border-bottom: 2px solid var(--accent-color);
    padding: 12px 24px;
}

.banner-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 20px;
}

.college-logo-img {
    height: 85px;
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
}

.sasma-logo-img {
    height: 85px;
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
    border-radius: 50%;
}

.college-details {
    flex-grow: 1;
}

.prayer-slogan {
    font-size: 0.8rem;
    font-style: italic;
    color: var(--text-muted);
    margin-bottom: 2px;
    letter-spacing: 0.5px;
}

.college-name {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--primary-color);
    line-height: 1.2;
    text-transform: uppercase;
}

.college-subtags {
    font-size: 0.75rem;
    color: var(--text-dark);
    margin-top: 4px;
    font-weight: 500;
    line-height: 1.4;
}

.sasma-badge {
    background-color: var(--primary-color);
    color: var(--accent-color);
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.1rem;
    text-align: center;
    border: 1px solid var(--accent-color);
    box-shadow: var(--shadow-sm);
    letter-spacing: 1px;
}

@media (max-width: 768px) {
    .banner-container {
        display: grid;
        grid-template-areas: 
            "logo-l logo-r"
            "info info";
        grid-template-columns: 1fr 1fr;
        justify-items: center;
        align-items: center;
        gap: 12px;
        padding: 10px 0;
    }
    .college-logo-img {
        grid-area: logo-l;
        height: 60px;
    }
    .sasma-logo-img {
        grid-area: logo-r;
        height: 60px;
    }
    .college-details {
        grid-area: info;
        text-align: center;
    }
    .college-name {
        font-size: 1.05rem;
    }
    .college-subtags {
        font-size: 0.65rem;
    }
    .sasma-badge {
        font-size: 0.9rem;
        padding: 6px 12px;
    }
}

/* Navigation Bar */
.main-nav {
    position: sticky;
    top: 0;
    z-index: 1000;
    background-color: rgba(var(--primary-rgb), 0.95); /* Semi-transparent Brand Primary (Magenta Pink) */
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(212, 175, 55, 0.3);
    padding: 14px 24px;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-brand {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--accent-color);
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 30px;
    list-style: none;
}

.nav-links a {
    color: var(--bg-light);
    font-weight: 550;
    font-size: 0.95rem;
    padding: 6px 4px;
    position: relative;
    letter-spacing: 0.5px;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent-color);
    transition: var(--transition);
}

.nav-links a:hover {
    color: var(--accent-color);
}

.nav-links a:hover::after {
    width: 100%;
}

.nav-links a.active {
    color: var(--accent-color);
}

.nav-links a.active::after {
    width: 100%;
}

.nav-btn {
    background-color: var(--accent-color);
    color: var(--primary-color) !important;
    padding: 8px 20px !important;
    border-radius: 50px;
    font-weight: 700 !important;
    box-shadow: var(--shadow-sm);
}

.nav-btn::after {
    display: none !important;
}

.nav-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(212, 175, 55, 0.4);
    background-color: var(--bg-white);
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    background: none;
    border: none;
    padding: 5px;
}

.menu-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--bg-white);
    border-radius: 3px;
    transition: var(--transition);
}

@media (max-width: 768px) {
    .menu-toggle {
        display: flex;
    }
    
    .nav-links {
        position: fixed;
        top: 65px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 65px);
        background-color: var(--primary-color);
        flex-direction: column;
        justify-content: flex-start;
        padding-top: 40px;
        gap: 25px;
        transition: var(--transition);
        border-top: 1px solid rgba(212, 175, 55, 0.2);
    }
    
    .nav-links.active {
        left: 0;
    }
    
    .menu-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 6deg);
    }
    .menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    .menu-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -6deg);
    }
}

/* Section Common Styles */
section {
    padding: 80px 24px;
}

.section-container {
    max-width: 1200px;
    margin: 0 auto;
}

.section-title-wrapper {
    text-align: center;
    margin-bottom: 50px;
}

.section-tagline {
    color: var(--primary-color);
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 8px;
    display: inline-block;
}

.section-title {
    font-size: 2.2rem;
    color: var(--text-dark);
    position: relative;
    padding-bottom: 15px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background-color: var(--accent-color);
    border-radius: 2px;
}

.section-desc {
    color: var(--text-muted);
    max-width: 650px;
    margin: 15px auto 0;
    font-size: 1.05rem;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 28px;
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: var(--radius-sm);
    transition: var(--transition);
    cursor: pointer;
    border: none;
    gap: 8px;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--bg-white);
    box-shadow: 0 4px 6px rgba(var(--primary-rgb), 0.15);
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(var(--primary-rgb), 0.25);
}

.btn-accent {
    background-color: var(--accent-color);
    color: var(--primary-color);
    box-shadow: 0 4px 6px rgba(212, 175, 55, 0.15);
}

.btn-accent:hover {
    background-color: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(212, 175, 55, 0.25);
}

.btn-outline {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-outline:hover {
    background-color: var(--primary-light);
    transform: translateY(-2px);
}

/* Footer Section */
footer {
    background-color: var(--text-dark);
    color: #A0AEC0;
    padding: 60px 24px 20px;
    font-size: 0.9rem;
    border-top: 5px solid var(--accent-color);
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1.2fr;
    gap: 60px;
    margin-bottom: 40px;
}

.footer-about h3, .footer-links h3, .footer-contact h3 {
    color: var(--bg-white);
    font-size: 1.2rem;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer-about h3::after, .footer-links h3::after, .footer-contact h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 3px;
    background-color: var(--accent-color);
    border-radius: var(--radius-sm);
}

.footer-about p {
    line-height: 1.7;
    margin-bottom: 20px;
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a:hover {
    color: var(--accent-color);
    padding-left: 5px;
}

.footer-contact li {
    display: flex;
    gap: 12px;
    margin-bottom: 15px;
    align-items: flex-start;
}

.footer-contact i {
    color: var(--accent-color);
    font-size: 1.1rem;
    margin-top: 3px;
}

.footer-bottom {
    max-width: 1200px;
    margin: 0 auto;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.08);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

@media (max-width: 992px) {
    .footer-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
}

/* ========================================= */
/* PAGE: HOMEPAGE (index.html)               */
/* ========================================= */

/* Hero Section */
.hero-section {
    position: relative;
    padding: 100px 24px;
    background: linear-gradient(135deg, #A11B5E 0%, #510d2f 100%);
    color: var(--bg-white);
    overflow: hidden;
}

/* Background grid motif */
.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(rgba(212, 175, 55, 0.15) 1px, transparent 1px);
    background-size: 30px 30px;
    opacity: 0.6;
    pointer-events: none;
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    align-items: center;
    gap: 60px;
    position: relative;
    z-index: 10;
}

.hero-badge {
    background-color: rgba(212, 175, 55, 0.15);
    color: var(--accent-color);
    border: 1px solid var(--accent-color);
    padding: 6px 16px;
    border-radius: var(--radius-lg);
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 24px;
    display: inline-block;
}

.hero-title {
    font-size: 3.2rem;
    line-height: 1.15;
    margin-bottom: 20px;
    font-weight: 800;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 30px;
    font-weight: 400;
}

.tamil-hero-desc {
    font-size: 1.3rem;
    color: var(--accent-color);
    margin-bottom: 25px;
    font-weight: 600;
    line-height: 1.5;
    border-left: 3px solid var(--accent-color);
    padding-left: 15px;
}

.hero-ctas {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

/* Feature tags inside hero */
.hero-promo-card {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--radius-md);
    padding: 24px;
    border-left: 4px solid var(--accent-color);
}

.hero-promo-title {
    color: var(--accent-color);
    font-size: 1.1rem;
    margin-bottom: 12px;
    font-family: var(--font-heading);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.hero-promo-item {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    font-size: 0.95rem;
}

.hero-promo-item:last-child {
    margin-bottom: 0;
}

.hero-promo-item i {
    color: var(--accent-color);
}

@media (max-width: 992px) {
    .hero-container {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }
    
    .hero-title {
        font-size: 2.4rem;
    }
    
    .tamil-hero-desc {
        border-left: none;
        border-bottom: 3px solid var(--accent-color);
        padding-left: 0;
        padding-bottom: 15px;
    }
    
    .hero-ctas {
        justify-content: center;
    }
    
    .hero-promo-card {
        text-align: left;
        max-width: 500px;
        margin: 0 auto;
    }
}

/* Key Features / Benefits Grid */
.features-section {
    background-color: var(--bg-white);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.feature-card {
    background-color: var(--bg-light);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 30px 24px;
    text-align: center;
    transition: var(--transition);
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.feature-card:hover {
    transform: translateY(-8px);
    border-color: rgba(var(--primary-rgb), 0.2);
    box-shadow: var(--shadow-xl);
}

.feature-icon-wrapper {
    width: 65px;
    height: 65px;
    background-color: var(--primary-light);
    color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    margin-bottom: 20px;
    font-size: 1.8rem;
    transition: var(--transition);
    border: 1px solid rgba(122,0,30,0.1);
}

.feature-card:hover .feature-icon-wrapper {
    background-color: var(--primary-color);
    color: var(--accent-color);
    transform: scale(1.1);
}

.feature-title {
    font-size: 1.2rem;
    margin-bottom: 8px;
    color: var(--text-dark);
}

.feature-tamil-title {
    font-size: 0.95rem;
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 12px;
}

.feature-desc {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.5;
}

@media (max-width: 992px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .features-grid {
        grid-template-columns: 1fr;
    }
}

/* Courses Spotlight */
.courses-section {
    background-color: var(--bg-light);
}

.courses-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.course-card {
    background-color: var(--bg-white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.course-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
    border-color: var(--accent-color);
}

.course-img-wrapper {
    height: 250px;
    position: relative;
    background-color: var(--primary-color);
    overflow: hidden;
}

/* Illustrative course gradient banners */
.course-gradient {
    position: absolute;
    top:0; left:0; width:100%; height:100%;
    background: linear-gradient(135deg, var(--primary-color) 0%, #1e0007 100%);
    opacity: 0.9;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Dynamic design background art */
.course-gradient::before {
    content: '';
    position: absolute;
    width: 200px;
    height: 200px;
    background-color: rgba(212, 175, 55, 0.15);
    border-radius: 50%;
    top: -50px;
    right: -50px;
}

.course-gradient-t1 { background: linear-gradient(135deg, #A11B5E 0%, #d83d8e 100%); }
.course-gradient-t2 { background: linear-gradient(135deg, #1A365D 0%, #2B6CB0 100%); }
.course-gradient-t3 { background: linear-gradient(135deg, #2D3748 0%, #4A5568 100%); }
.course-gradient-t4 { background: linear-gradient(135deg, #2C5282 0%, #2F855A 100%); }

.course-img-lbl {
    color: var(--accent-color);
    font-size: 3.5rem;
    font-weight: 800;
    opacity: 0.4;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.course-badge {
    position: absolute;
    top: 20px;
    left: 20px;
    background-color: var(--accent-color);
    color: var(--primary-color);
    padding: 6px 14px;
    border-radius: var(--radius-sm);
    font-weight: 700;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: var(--shadow-sm);
    z-index: 12;
}

.course-content {
    padding: 30px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.course-title-block {
    margin-bottom: 12px;
}

.course-title-en {
    font-size: 1.5rem;
    color: var(--text-dark);
    margin-bottom: 2px;
}

.course-title-ta {
    color: var(--primary-color);
    font-size: 1.05rem;
    font-weight: 600;
}

.course-desc {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: auto;
    margin-top: 10px;
}

.course-meta {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    font-size: 0.88rem;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-dark);
}

.meta-item i {
    color: var(--primary-color);
    font-size: 1rem;
}

.course-footer {
    margin-top: 20px;
}

.course-footer .btn {
    width: 100%;
}

@media (max-width: 768px) {
    .courses-grid {
        grid-template-columns: 1fr;
    }
}

/* Timings and Schedule Section */
.schedules-section {
    background-color: var(--bg-white);
}

.scheduler-layout {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 50px;
    align-items: center;
}

.schedule-table-wrapper {
    background: var(--bg-light);
    border-radius: var(--radius-md);
    padding: 30px;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
}

.schedule-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
}

.schedule-table th, .schedule-table td {
    padding: 15px 20px;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.schedule-table th {
    background-color: var(--primary-color);
    color: var(--bg-white);
    font-family: var(--font-heading);
    font-weight: 600;
}

.schedule-table th:first-child {
    border-top-left-radius: var(--radius-sm);
}

.schedule-table th:last-child {
    border-top-right-radius: var(--radius-sm);
}

.schedule-table tr:last-child td {
    border-bottom: none;
}

.schedule-table td strong {
    color: var(--primary-color);
}

.schedule-banner-card {
    background: linear-gradient(135deg, var(--primary-color) 0%, rgb(43, 0, 10) 100%);
    border-radius: var(--radius-lg);
    padding: 40px;
    color: var(--bg-white);
    position: relative;
    overflow: hidden;
    border-left: 5px solid var(--accent-color);
}

.schedule-banner-card::after {
    content: '';
    position: absolute;
    width: 150px;
    height: 150px;
    border: 15px solid rgba(212, 175, 55, 0.15);
    border-radius: 50%;
    bottom: -50px;
    right: -50px;
}

.schedule-banner-card h3 {
    font-size: 1.6rem;
    margin-bottom: 15px;
    color: var(--accent-color);
}

.schedule-banner-card p {
    font-size: 1rem;
    margin-bottom: 25px;
    color: rgba(255, 255, 255, 0.9);
}

@media (max-width: 992px) {
    .scheduler-layout {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

/* ========================================= */
/* PAGE: REGISTRATION (register.html)       */
/* ========================================= */

.page-banner {
    background: linear-gradient(135deg, var(--primary-color) 0%, #31000b 100%);
    color: var(--bg-white);
    padding: 60px 24px;
    text-align: center;
    border-bottom: 4px solid var(--accent-color);
}

.page-banner-title {
    font-size: 2.4rem;
    margin-bottom: 8px;
}

.page-banner-subtitle {
    color: var(--accent-color);
    font-size: 1.1rem;
    font-weight: 500;
}

.form-section {
    padding: 60px 24px;
}

.form-wrapper {
    max-width: 800px;
    margin: 0 auto;
    background-color: var(--bg-white);
    box-shadow: var(--shadow-xl);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    overflow: hidden;
}

.form-header {
    background-color: var(--primary-light);
    border-bottom: 1px solid rgba(var(--primary-rgb), 0.1);
    padding: 30px 40px;
    display: flex;
    justify-content: space-between;
    alignment-baseline: center;
    flex-wrap: wrap;
    gap: 20px;
}

.form-header-title h2 {
    color: var(--primary-color);
    font-size: 1.5rem;
}

.form-header-title p {
    color: var(--text-muted);
    font-size: 0.88rem;
}

.photo-slot-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.photo-placeholder-box {
    width: 95px;
    height: 120px;
    border: 2px dashed rgba(var(--primary-rgb), 0.3);
    border-radius: var(--radius-sm);
    background-color: var(--bg-white);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    overflow: hidden;
    position: relative;
    transition: var(--transition);
}

.photo-placeholder-box:hover {
    border-color: var(--primary-color);
    background-color: var(--primary-light);
}

.photo-placeholder-box i {
    font-size: 1.5rem;
    color: rgba(var(--primary-rgb), 0.4);
    margin-bottom: 5px;
}

.photo-placeholder-box span {
    font-size: 0.65rem;
    color: var(--text-muted);
    text-transform: uppercase;
    font-weight: 700;
}

.photo-placeholder-box img {
    position: absolute;
    top:0; left:0; width:100%; height:100%;
    object-fit: cover;
    display: none;
}

.form-body {
    padding: 40px;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    column-gap: 30px;
    row-gap: 24px;
}

.form-group-full {
    grid-column: span 2;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-label {
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 8px;
    font-size: 0.9rem;
    display: flex;
    gap: 4px;
}

.form-label .tamil-lbl {
    font-weight: 400;
    color: var(--primary-color);
    font-size: 0.85rem;
}

.form-label span.req {
    color: #EF4444;
}

.form-control {
    width: 100%;
    padding: 12px 16px;
    border: 1.5px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-family: var(--font-body);
    font-size: 0.95rem;
    color: var(--text-dark);
    transition: var(--transition);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(var(--primary-rgb), 0.12);
}

.form-control::placeholder {
    color: #A0AEC0;
}

textarea.form-control {
    resize: vertical;
    min-height: 100px;
}

/* Custom Checkbox/Radio Grid */
.option-cards-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin-top: 5px;
}

.option-card-label {
    border: 1.5px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 14px 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: var(--transition);
    background-color: var(--bg-white);
}

.option-card-label:hover {
    border-color: rgba(var(--primary-rgb), 0.3);
    background-color: var(--bg-light);
}

.custom-option-input {
    width: 18px;
    height: 18px;
    accent-color: var(--primary-color);
    cursor: pointer;
}

.option-card-label span {
    font-weight: 550;
    font-size: 0.92rem;
}

.option-card-label .tamil-opt {
    display: block;
    font-size: 0.78rem;
    color: var(--primary-color);
    font-weight: 400;
    margin-top: 1px;
}

.custom-option-input:checked + .option-text-wrapper + .option-card-label,
.option-card-label:has(.custom-option-input:checked) {
    border-color: var(--primary-color);
    background-color: var(--primary-light);
}

@media(max-width: 768px) {
    .option-cards-grid {
        grid-template-columns: 1fr;
    }
}

/* Modern Switch Toggle */
.switch-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: #F8FAFC;
    border: 1.5px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 15px 25px;
    margin-bottom: 10px;
}

.switch-label-wrapper {
    flex: 1;
    min-width: 0;
    padding-right: 15px;
}

.switch-label-ta {
    display: block;
    font-size: 0.85rem;
    color: var(--primary-color);
    margin-top: 2px;
}

.switch {
    position: relative;
    display: block;
    width: 55px;
    height: 28px;
    flex-shrink: 0;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0; left: 0; right: 0; bottom: 0;
    background-color: #CBD5E0;
    transition: .4s;
    border-radius: 34px;
}

.slider::before {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    left: 4px;
    bottom: 4px;
    background-color: var(--bg-white);
    transition: .4s;
    border-radius: 50%;
    box-shadow: var(--shadow-sm);
}

.switch input:checked + .slider {
    background-color: var(--primary-color);
}

.switch input:focus + .slider {
    box-shadow: 0 0 1px var(--primary-color);
}

.switch input:checked + .slider::before {
    transform: translateX(27px);
}

/* College Student Extended Module */
.college-student-section {
    grid-column: span 2;
    border-top: 2px dashed var(--border-color);
    padding-top: 30px;
    margin-top: 10px;
    display: none; /* Dynamic visibility toggled in js */
}

.college-student-section.visible {
    display: block;
    animation: slideDown 0.4s ease forwards;
}

.college-section-header {
    border-left: 4px solid var(--accent-color);
    padding-left: 15px;
    margin-bottom: 25px;
}

.college-section-header h3 {
    color: var(--primary-color);
    font-size: 1.25rem;
}

.college-section-header p {
    color: var(--text-muted);
    font-size: 0.85rem;
}

.form-footer {
    padding: 30px 40px;
    background-color: var(--bg-light);
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 15px;
}

.form-footer .btn {
    min-width: 150px;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 768px) {
    section.form-section {
        padding: 30px 12px;
    }
    .form-grid {
        grid-template-columns: 1fr;
    }
    .form-group-full {
        grid-column: span 1;
    }
    .college-student-section {
        grid-column: span 1;
    }
    .form-body {
        padding: 16px;
    }
    .form-header {
        padding: 16px;
    }
    .form-footer {
        padding: 16px;
        flex-direction: column-reverse;
    }
    .form-footer .btn {
        width: 100%;
    }
    .switch-container {
        padding: 12px 16px;
        flex-wrap: nowrap;
        gap: 15px;
    }
    .switch {
        width: 55px !important;
        height: 28px !important;
        display: block !important;
        position: relative !important;
        flex-shrink: 0 !important;
    }
    .slider {
        position: absolute !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        bottom: 0 !important;
        display: block !important;
    }
}

/* Success Modal Styles */
.modal-overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background-color: rgba(10, 17, 40, 0.6);
    backdrop-filter: blur(5px);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0; pointer-events: none;
    transition: var(--transition);
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.modal-card {
    background-color: var(--bg-white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    width: 90%;
    max-width: 480px;
    padding: 40px;
    text-align: center;
    border-top: 6px solid var(--success-color);
    transform: scale(0.9);
    transition: var(--transition);
}

.modal-overlay.active .modal-card {
    transform: scale(1);
}

.modal-icon {
    width: 70px;
    height: 70px;
    background-color: #D1FAE5;
    color: var(--success-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.2rem;
    margin: 0 auto 20px;
}

.modal-title {
    font-size: 1.6rem;
    color: var(--text-dark);
    margin-bottom: 10px;
}

.modal-desc {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 25px;
    line-height: 1.5;
}

/* ========================================= */
/* PAGE: LOGIN (login.html)                 */
/* ========================================= */

.login-page-body {
    background: linear-gradient(135deg, #f3f4f6 0%, #e5e7eb 100%);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.login-layout {
    flex-grow: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 50px 24px;
    background-image: radial-gradient(rgba(var(--primary-rgb), 0.08) 1px, transparent 1px);
    background-size: 25px 25px;
}

.login-card {
    background-color: var(--bg-white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    border: 1px solid var(--border-color);
    width: 100%;
    max-width: 450px;
    overflow: hidden;
}

.login-header {
    background-color: var(--white);
    padding: 40px 40px 20px;
    text-align: center;
    border-bottom: 1px solid var(--border-color);
}

.login-logo {
    height: 75px;
    width: auto;
    margin: 0 auto 15px;
}

.login-header-title {
    font-size: 1.4rem;
    color: var(--primary-color);
    margin-top: 10px;
}

.login-header p {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-top: 4px;
}

.login-body {
    padding: 40px;
}

.login-form-group {
    margin-bottom: 20px;
    position: relative;
}

.password-input-wrapper {
    position: relative;
}

.password-toggle-btn {
    position: absolute;
    top: 50%;
    right: 15px;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-muted);
}

.login-extras {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    font-size: 0.85rem;
}

.remember-me {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-weight: 550;
    color: var(--text-muted);
}

.remember-me input {
    width: 16px;
    height: 16px;
    accent-color: var(--primary-color);
}

.forgot-pw {
    color: var(--primary-color);
    font-weight: 600;
}

.forgot-pw:hover {
    text-decoration: underline;
}

.login-submit-btn {
    width: 100%;
    padding: 13px;
    border-radius: var(--radius-sm);
    font-size: 1rem;
}

.login-footer {
    padding: 24px 40px;
    background-color: var(--bg-light);
    border-top: 1px solid var(--border-color);
    text-align: center;
    font-size: 0.88rem;
}

.login-footer a {
    color: var(--primary-color);
    font-weight: 700;
}

.login-footer a:hover {
    text-decoration: underline;
}

/* Syllabus Accordion */
.syllabus-toggle-btn {
    background: none;
    border: none;
    color: var(--primary-color);
    font-weight: 700;
    font-size: 0.88rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 0;
    margin-top: 15px;
    transition: color 0.2s ease;
    font-family: var(--font-body);
}

.syllabus-toggle-btn:hover {
    color: var(--accent-color);
}

.syllabus-toggle-btn i {
    transition: transform 0.3s ease;
}

.syllabus-toggle-btn.active i {
    transform: rotate(180deg);
}

.course-syllabus-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding 0.4s ease, border 0.4s ease;
    background-color: #F8FAFC;
    border-radius: var(--radius-sm);
    border: 1px solid transparent;
}

.course-syllabus-content.active {
    max-height: 250px;
    overflow-y: auto;
    border: 1.5px solid var(--border-color);
    padding: 12px 15px;
    margin-top: 10px;
    margin-bottom: 5px;
}

.syllabus-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.syllabus-list li {
    padding: 6px 0;
    font-size: 0.82rem;
    color: var(--text-dark);
    border-bottom: 1px dashed #E2E8F0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.syllabus-list li:last-child {
    border-bottom: none;
}

.syllabus-list li::before {
    content: "•";
    color: var(--accent-color);
    font-weight: 800;
    font-size: 1rem;
}

/* Custom Validation Error Styles */
.form-control.is-invalid {
    border-color: #EF4444 !important;
    background-color: #FFECEE !important;
}

.form-control.is-invalid:focus {
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.2) !important;
    outline: none;
}

.error-message {
    color: #DC2626;
    font-size: 0.8rem;
    font-weight: 600;
    margin-top: 6px;
    display: flex;
    align-items: center;
    gap: 6px;
    animation: fieldErrorShow 0.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes fieldErrorShow {
    from {
        opacity: 0;
        transform: translateY(-4px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Student Portal Styling */
.student-portal-section {
    background: linear-gradient(135deg, #FFF9FA 0%, #FFF0F2 100%);
    border-bottom: 2px solid rgba(var(--primary-rgb), 0.08);
    padding: 40px 0;
}

.portal-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

@media (max-width: 768px) {
    .portal-grid {
        grid-template-columns: 1fr;
    }
}

.portal-course-card {
    background-color: var(--bg-white);
    border-radius: var(--radius-md);
    padding: 30px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
    border-left: 5px solid var(--primary-color);
}

.portal-card-tag {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--primary-color);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 10px;
    display: inline-block;
}

.portal-course-card h3 {
    font-size: 1.8rem;
    color: var(--text-dark);
    margin-bottom: 5px;
}

.student-profile-info {
    border-top: 1px dashed var(--border-color);
    padding-top: 20px;
}

.student-profile-info h4 {
    font-size: 1rem;
    color: var(--text-dark);
    margin-bottom: 10px;
}

.student-profile-info p {
    font-size: 0.88rem;
    color: var(--text-muted);
    margin-bottom: 6px;
}

.portal-payment-card {
    background-color: var(--bg-white);
    border-radius: var(--radius-md);
    padding: 30px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.portal-payment-card.status-paid {
    border-left: 5px solid var(--success-color);
}

.portal-payment-card.status-unpaid {
    border-left: 5px solid var(--accent-color);
}

.payment-badge {
    font-size: 0.75rem;
    font-weight: 700;
    padding: 6px 12px;
    border-radius: 50px;
    display: flex;
    align-items: center;
    gap: 6px;
    text-transform: uppercase;
}

.payment-badge.paid {
    background-color: #E6FFFA;
    color: #047481;
}

.payment-badge.unpaid {
    background-color: #FFFAF0;
    color: #DD6B20;
}

.payment-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 15px;
    margin-bottom: 20px;
}

.payment-card-header h4 {
    font-size: 1.1rem;
    color: var(--text-dark);
}

.price-row {
    margin-bottom: 25px;
}

.price-label {
    font-size: 0.9rem;
    color: var(--text-muted);
    font-weight: 600;
    display: block;
    margin-bottom: 6px;
}

.price-value-wrapper {
    display: flex;
    align-items: center;
    background-color: var(--bg-light);
    border: 1.5px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 5px 15px;
    width: max-content;
}

.price-currency {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-right: 5px;
}

.price-amount-disabled {
    font-size: 1.5rem;
    font-weight: 700;
    color: #4A5568 !important;
    background: transparent;
    border: none;
    outline: none;
    width: 140px;
    pointer-events: none;
    user-select: none;
}

.payment-desc {
    font-size: 0.88rem;
    color: var(--text-muted);
    line-height: 1.5;
    margin-bottom: 20px;
}

.btn-pay-now {
    width: 100%;
    padding: 14px 20px;
    font-size: 1rem;
    font-weight: 700;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    border: none;
    border-radius: var(--radius-sm);
    box-shadow: 0 4px 15px rgba(221, 107, 32, 0.2);
    cursor: pointer;
}

.payment-success-msg {
    display: flex;
    gap: 15px;
    align-items: flex-start;
    background-color: #F0FDF4;
    border: 1px solid #BBF7D0;
    border-radius: var(--radius-sm);
    padding: 15px 20px;
    color: #166534;
    text-align: left;
}

.payment-success-msg .success-icon {
    font-size: 1.6rem;
    color: #15803D;
    margin-top: 2px;
}

.payment-success-msg strong {
    font-size: 0.95rem;
    display: block;
    margin-bottom: 4px;
}

.payment-success-msg p {
    font-size: 0.85rem;
    opacity: 0.9;
    margin: 0;
    line-height: 1.4;
}

/* User Welcome in Navbar */
.user-welcome {
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--primary-color);
    background-color: rgba(var(--primary-rgb), 0.05);
    padding: 6px 12px;
    border-radius: 50px;
    display: flex;
    align-items: center;
    gap: 6px;
    border: 1px solid rgba(var(--primary-rgb), 0.1);
}

/* Receipt Popup Modal CSS */
.receipt-popup-modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(4px);
    justify-content: center;
    align-items: center;
}

.receipt-popup-modal.active {
    display: flex;
    animation: fadeInModal 0.3s ease;
}

.receipt-modal-content {
    background-color: #fff;
    border-radius: var(--radius-md);
    width: 90%;
    max-width: 760px;
    padding: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    position: relative;
    animation: slideUpModal 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.receipt-close-btn {
    position: absolute;
    right: 20px;
    top: 15px;
    color: #aaa;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    z-index: 100;
}

.receipt-close-btn:hover {
    color: var(--accent-color);
}

@keyframes fadeInModal {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUpModal {
    from { transform: translateY(40px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

/* Payment Synchronizing Loading Card CSS */
.payment-sync-loading {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 18px 24px;
    background-color: #F8FAFC;
    border: 1.5px dashed var(--primary-color);
    border-radius: var(--radius-sm);
    margin-top: 10px;
}
.payment-sync-loading .sync-spinner {
    font-size: 1.8rem;
    color: var(--primary-color);
    flex-shrink: 0;
}
.payment-sync-loading .sync-text-wrapper {
    display: flex;
    flex-direction: column;
    gap: 4px;
    text-align: left;
}
.payment-sync-loading .sync-text-wrapper strong {
    font-size: 0.92rem;
    font-weight: 700;
    color: var(--text-dark);
}
.payment-sync-loading .sync-text-wrapper p {
    font-size: 0.82rem;
    color: var(--text-muted);
    margin: 0;
    line-height: 1.4;
}

