/* 
   SR Global Academy Custom Design System
   Font: Outfit (Avenir Alternative)
*/

:root {
    --primary-color: #1a4d80; /* Corporate Blue */
    --secondary-color: #f8f9fa;
    --text-color: #333;
    --text-muted: #666;
    --accent-color: #2c5ba0;
    --border-color: #dee2e6;
    --container-width: 1200px;
    --transition-speed: 0.3s;
    --font-main: 'Outfit', sans-serif;
}

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

body {
    font-family: var(--font-main);
    color: var(--text-color);
    line-height: 1.6;
    background-color: #fff;
    overflow-x: hidden;
}

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

ul {
    list-style: none;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 1.5rem;
}

.text-center { text-align: center; }
.py-5 { padding-top: 3rem; padding-bottom: 3rem; }

/* Header */
header {
    background: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.container-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

#site-logo {
    height: 70px;
    display: block;
}

nav ul {
    display: flex;
    gap: 2rem;
}

nav ul li a {
    font-weight: 500;
    font-size: 0.95rem;
    color: #444;
    text-transform: capitalize;
}

nav ul li a.active, nav ul li a:hover {
    color: var(--primary-color);
}

/* Hero Section */
#hero {
    position: relative;
    height: 80vh;
    overflow: hidden;
}

.hero-image-wrapper {
    width: 100%;
    height: 100%;
}

.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: flex-end;
    padding-bottom: 5rem;
    background: linear-gradient(0deg, rgba(0,0,0,0.3) 0%, rgba(0,0,0,0) 50%);
}

.hero-card {
    background: rgba(255, 255, 255, 0.95);
    padding: 2.5rem;
    border-radius: 4px;
    max-width: 650px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    backdrop-filter: blur(5px);
}

.hero-card h2 {
    font-size: 2.2rem;
    margin-bottom: 1rem;
    color: #222;
    font-weight: 600;
}

.hero-card p {
    font-size: 1.1rem;
    color: #555;
    margin-bottom: 2rem;
}

.btn {
    display: inline-block;
    padding: 0.8rem 2.5rem;
    border-radius: 4px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-outline {
    border: 1px solid #aaa;
    color: #333;
    background: transparent;
}

.btn-outline:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: #fff;
}

.btn-dark {
    background: #113355;
    color: #fff;
    border: 1px solid #113355;
}

.btn-dark:hover {
    background: #002244;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

/* Info Cards */
#info-cards {
    padding: 5rem 0;
}

.cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.card {
    border: 1px solid #eee;
    padding: 3rem 2rem;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.05);
}

.card h3 {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    color: #222;
    font-weight: 600;
}

.card p {
    color: #666;
    margin-bottom: 2.5rem;
    min-height: 4.8rem;
}

/* About Us & Principal Bg Sections */
.bg-section {
    padding: 6rem 0;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 3rem;
    text-align: center;
    position: relative;
    padding-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

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

.about-intro {
    font-size: 1.2rem;
    font-weight: 500;
    margin-bottom: 2rem;
    color: #222;
}

.about-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    text-align: left;
    margin-top: 4rem;
}

.feature-item h4 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.1rem;
    letter-spacing: 1px;
}

.feature-item p {
    font-size: 0.95rem;
    color: #444;
}

/* Admission Guidelines */
#admission {
    padding: 5rem 0;
    background: #fff;
}

.guidelines-content {
    max-width: 900px;
    margin: 0 auto;
}

.sub-title {
    color: #007bff;
    margin: 2.5rem 0 1rem;
    font-size: 1.2rem;
}

.styled-list {
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
}

.styled-list li {
    list-style-type: disc;
    margin-bottom: 0.8rem;
    color: #444;
}

.sub-list {
    margin-top: 1rem;
    padding-left: 1.5rem;
}

.sub-list li {
    list-style-type: decimal;
}

.note {
    font-style: italic;
    color: #777;
    margin-bottom: 1.5rem;
}

/* Fee Structure */
#fee-structure {
    padding: 5rem 0;
    background: #fdfdfd;
}

.fee-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 3rem;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.fee-table th, .fee-table td {
    border: 1px solid #eee;
    padding: 1.2rem;
    text-align: left;
}

.fee-table th {
    background: #1a6ab5;
    color: #fff;
    font-weight: 500;
    text-transform: capitalize;
}

.main-table th:nth-child(2), .main-table td:nth-child(2) { width: 30%; }
.main-table th:nth-child(3), .main-table td:nth-child(3) { width: 30%; }

.installment-table th {
    background: #e9ecef;
    color: #444;
}

/* Principal Message */
.principal-profile {
    margin-bottom: 3rem;
}

.principal-img-container {
    width: 200px;
    height: 250px;
    margin: 0 auto 1.5rem;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.principal-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.principal-profile h3 {
    font-size: 1.5rem;
    color: #222;
}

.message-content {
    max-width: 800px;
    margin: 0 auto;
    font-size: 1.1rem;
    color: #444;
    line-height: 1.8;
}

.message-content p {
    margin-bottom: 1.5rem;
}

.quote-icon {
    margin-top: 2rem;
    opacity: 0.6;
}

/* PDF Section */
.pdf-label {
    margin-top: 1rem;
    font-weight: 600;
    letter-spacing: 2px;
}

/* Footer */
footer {
    background: #fff;
    border-top: 1px solid #eee;
    padding: 5rem 0 2rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 4rem;
    padding-bottom: 3rem;
}

.footer-info h4, .footer-menu h4, .footer-socials h4 {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    color: #222;
    letter-spacing: 1px;
}

.footer-info p {
    color: #666;
    font-size: 0.9rem;
    line-height: 1.8;
}

.footer-info a:hover {
    color: var(--primary-color);
    text-decoration: underline;
}

.footer-menu ul li {
    margin-bottom: 0.8rem;
}

.footer-menu ul li a {
    color: #555;
    font-size: 0.9rem;
}

.footer-menu ul li a:hover {
    color: var(--primary-color);
    padding-left: 5px;
}

.social-icons {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.social-icons a {
    opacity: 0.7;
}

.social-icons a:hover {
    opacity: 1;
}

.copyright {
    color: #999;
    font-size: 0.8rem;
    margin-top: 1rem;
}

/* Responsive Table */
.table-container {
    width: 100%;
    overflow-x: auto;
    margin-bottom: 2rem;
    -webkit-overflow-scrolling: touch;
}

.fee-table {
    width: 100%;
    margin-bottom: 3rem;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

/* Mobile Menu Toggle */
.nav-toggle {
    display: none;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 10px;
    z-index: 2000;
}

.hamburger {
    display: block;
    width: 25px;
    height: 2px;
    background: var(--primary-color);
    position: relative;
    transition: background 0.2s;
}

.hamburger::before, .hamburger::after {
    content: '';
    position: absolute;
    width: 25px;
    height: 2px;
    background: var(--primary-color);
    transition: transform 0.3s;
}

.hamburger::before { top: -8px; left: 0; }
.hamburger::after { bottom: -8px; left: 0; }

.nav-toggle.active .hamburger {
    background: transparent;
}

.nav-toggle.active .hamburger::before {
    transform: translateY(8px) rotate(45deg);
}

.nav-toggle.active .hamburger::after {
    transform: translateY(-8px) rotate(-45deg);
}

.no-scroll {
    overflow: hidden;
}

/* Responsive Styles */
@media (max-width: 1024px) {
    :root {
        --container-width: 95%;
    }
}

@media (max-width: 992px) {
    .section-title { font-size: 2rem; }
    .cards-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
    .about-features { grid-template-columns: 1fr; gap: 2rem; }
}

@media (max-width: 768px) {
    /* Mobile Navigation */
    .nav-toggle {
        display: block;
    }

    #nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        height: 100vh;
        background: #fff;
        box-shadow: -5px 0 15px rgba(0,0,0,0.1);
        padding: 80px 40px;
        transition: right 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
        z-index: 1500;
    }

    #nav-menu.active {
        right: 0;
    }

    .nav-list {
        flex-direction: column;
        gap: 2rem;
        align-items: flex-start;
    }

    .nav-list li a {
        font-size: 1.2rem;
    }

    /* Hero Section */
    #hero {
        height: auto;
        min-height: 60vh;
        padding: 4rem 0;
    }

    .hero-overlay {
        position: relative;
        padding-bottom: 0;
        background: none;
        justify-content: center;
        align-items: center;
    }

    .hero-card {
        padding: 2rem 1.5rem;
        margin: -4rem 1.5rem 0;
        max-width: 100%;
        box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    }

    .hero-card h2 { font-size: 1.7rem; }
    .hero-card p { font-size: 1rem; }

    /* Layout Adjustments */
    .cards-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
    .bg-section { padding: 4rem 0; background-attachment: scroll; }
    
    .principal-profile h3 { font-size: 1.3rem; }
    .message-content { font-size: 1rem; }

    /* Responsive Table - Stacked Layout */
    .fee-table, .fee-table tbody, .fee-table thead {
        display: block;
    }

    .fee-table {
        min-width: 0;
        border: 0;
        background: transparent;
        box-shadow: none;
    }

    .fee-table thead {
        display: none;
    }

    .fee-table tr {
        display: block;
        background: #fff;
        margin-bottom: 2rem;
        border: 1px solid #eee;
        border-radius: 8px;
        padding: 1rem;
        box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    }

    .fee-table td {
        display: flex;
        justify-content: space-between;
        align-items: center;
        text-align: right;
        padding: 1rem 0;
        border: 0;
        border-bottom: 1px solid #f5f5f5;
        width: auto !important; /* Override desktop fixed widths */
        min-height: 3rem;
    }

    .fee-table td:last-child {
        border-bottom: 0;
    }

    .fee-table td::before {
        content: attr(data-label);
        font-weight: 700;
        text-align: left;
        color: var(--primary-color);
        margin-right: 1.5rem;
        flex-shrink: 0;
        font-size: 0.9rem;
        text-transform: uppercase;
    }
}

@media (max-width: 480px) {
    .section-title { font-size: 1.8rem; }
    .btn { width: 100%; padding: 0.8rem 1rem; }
    .hero-card { padding: 1.5rem 1rem; }
    .container { padding: 0 1rem; }
    #site-logo { height: 60px; }
}
