/* =========================================
   VARIABLES & DESIGN TOKENS
   ========================================= */
:root {
    --primary-color: #1a4fba;
    --primary-light: #3b71e8;
    --primary-dark: #0f3480;
    --secondary-color: #f7931e;
    --secondary-hover: #e08216;
    --text-dark: #1e293b;
    --text-body: #475569;
    --text-light: #94a3b8;
    --bg-light: #f8fafc;
    --bg-white: #ffffff;
    --border-color: #e2e8f0;
    
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    
    --shadow-sm: 0 1px 2px 0 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-glass: 0 8px 32px 0 rgba(31, 38, 135, 0.37);
    
    --radius-md: 0.5rem;
    --radius-lg: 1rem;
    --radius-xl: 1.5rem;
    
    --transition: all 0.3s ease;
}

/* =========================================
   RESET & BASE STYLES
   ========================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

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

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--text-dark);
    line-height: 1.2;
    margin-bottom: 1rem;
}

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

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

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.section {
    padding: 5rem 0;
}

.bg-light { background-color: var(--bg-light); }
.bg-gradient { background: linear-gradient(135deg, var(--primary-dark), var(--primary-color)); }
.text-white { color: #fff !important; }
.text-white p { color: #e2e8f0; }

.highlight { color: var(--primary-color); }
.highlight-yellow { color: var(--secondary-color); }

.mb-4 { margin-bottom: 1.5rem; }

/* =========================================
   TYPOGRAPHY
   ========================================= */
.section-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 3rem;
}

.section-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
}

.section-header p {
    font-size: 1.125rem;
    color: var(--text-body);
}

/* =========================================
   BUTTONS
   ========================================= */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    font-family: var(--font-heading);
    font-weight: 600;
    border-radius: var(--radius-md);
    cursor: pointer;
    border: none;
    transition: var(--transition);
    gap: 0.5rem;
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
    box-shadow: 0 4px 14px 0 rgba(26, 79, 186, 0.39);
}

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

.btn-submit {
    width: 100%;
    background-color: var(--secondary-color);
    color: white;
    font-size: 1.125rem;
    padding: 1rem;
    margin-top: 1rem;
    border-radius: var(--radius-md);
    box-shadow: 0 4px 14px 0 rgba(247, 147, 30, 0.39);
}

.btn-submit:hover {
    background-color: var(--secondary-hover);
    transform: translateY(-2px);
}

/* =========================================
   HEADER
   ========================================= */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    box-shadow: var(--shadow-sm);
    padding: 1rem 0;
    transition: var(--transition);
}

.header.scrolled {
    padding: 0.5rem 0;
    box-shadow: var(--shadow-md);
}

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

.logo h1 {
    font-size: 1.5rem;
    font-weight: 800;
    margin: 0;
    color: var(--text-dark);
}

.logo span {
    color: var(--primary-color);
}

.header-contact {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.contact-number {
    font-weight: 600;
    color: var(--text-dark);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.contact-number i {
    color: var(--primary-color);
}

/* =========================================
   HERO SECTION
   ========================================= */
.hero {
    position: relative;
    padding: 8rem 0 5rem;
    background: url('images/cpa_hero_image_1779103756697.png') center/cover no-repeat;
    overflow: hidden;
    min-height: 80vh;
    display: flex;
    align-items: center;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, rgba(255,255,255,0.95) 0%, rgba(255,255,255,0.85) 50%, rgba(255,255,255,0.4) 100%);
    z-index: 0;
}

.hero-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 3rem;
    position: relative;
    z-index: 1;
}

.hero-content {
    flex: 1;
    max-width: 600px;
}

.badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    background-color: rgba(26, 79, 186, 0.1);
    color: var(--primary-color);
    font-weight: 600;
    font-size: 0.875rem;
    border-radius: 2rem;
    margin-bottom: 1.5rem;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
}

.hero-subtitle {
    font-size: 1.125rem;
    margin-bottom: 2rem;
}

.hero-features {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 500;
    color: var(--text-dark);
    background: white;
    padding: 0.5rem 1rem;
    border-radius: 2rem;
    box-shadow: var(--shadow-sm);
}

.feature-item i {
    color: #10b981;
}

.hero-form-wrapper {
    flex: 0 0 400px;
}

/* Glassmorphism Form */
.glass-form {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 2.5rem;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-glass);
}

.glass-form h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.glass-form p {
    font-size: 0.875rem;
    color: var(--text-body);
    margin-bottom: 1.5rem;
}

.input-group {
    margin-bottom: 1rem;
}

.input-group input,
.input-group select {
    width: 100%;
    padding: 1rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    font-family: var(--font-body);
    font-size: 1rem;
    background-color: var(--bg-white);
    transition: var(--transition);
}

.input-group input:focus,
.input-group select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(26, 79, 186, 0.1);
}

/* =========================================
   CARDS & GRIDS
   ========================================= */
.grid {
    display: grid;
    gap: 2rem;
}

.cards-grid {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.card {
    background-color: var(--bg-white);
    padding: 2.5rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
    transition: var(--transition);
    height: 100%;
}

.card-hover:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-light);
}

.card-icon {
    width: 60px;
    height: 60px;
    background-color: rgba(26, 79, 186, 0.1);
    color: var(--primary-color);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    margin-bottom: 1.5rem;
}

/* =========================================
   TABS & SYLLABUS
   ========================================= */
.tabs-container {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    overflow: hidden;
}

.tabs-header {
    display: flex;
    border-bottom: 1px solid var(--border-color);
}

.tab-btn {
    flex: 1;
    padding: 1.5rem;
    background: var(--bg-light);
    border: none;
    font-family: var(--font-heading);
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-body);
    cursor: pointer;
    transition: var(--transition);
}

.tab-btn:hover {
    background: var(--bg-white);
    color: var(--primary-color);
}

.tab-btn.active {
    background: var(--bg-white);
    color: var(--primary-color);
    border-bottom: 3px solid var(--primary-color);
}

.tab-content {
    display: none;
    padding: 2.5rem;
}

.tab-content.active {
    display: block;
    animation: fadeIn 0.5s ease;
}

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

.syllabus-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.syllabus-card {
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    position: relative;
    overflow: hidden;
    transition: var(--transition);
}

.syllabus-card:hover {
    border-color: var(--primary-light);
    box-shadow: var(--shadow-sm);
}

.s-card-header {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 2.5rem;
    color: rgba(26, 79, 186, 0.1);
    position: absolute;
    top: -10px;
    right: -10px;
    z-index: 0;
}

.discipline .s-card-header {
    color: rgba(247, 147, 30, 0.1);
}

.syllabus-card h4 {
    position: relative;
    z-index: 1;
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.syllabus-card p {
    position: relative;
    z-index: 1;
    font-size: 0.875rem;
}

/* =========================================
   FLEX SECTION (WHY EMERGE)
   ========================================= */
.flex-row {
    display: flex;
    align-items: center;
    gap: 4rem;
}

.flex-content {
    flex: 1;
}

.feature-list {
    list-style: none;
}

.feature-list li {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.5rem;
    font-size: 1.125rem;
}

.feature-list i {
    color: var(--secondary-color);
    font-size: 1.5rem;
    margin-top: 0.2rem;
}

.flex-image {
    flex: 1;
    position: relative;
}

.image-wrapper {
    position: relative;
    padding-bottom: 2rem;
}

.rounded-image {
    border-radius: var(--radius-xl);
    width: 100%;
    height: 400px;
    object-fit: cover;
    box-shadow: var(--shadow-lg);
    border: 4px solid rgba(255, 255, 255, 0.2);
}

.floating-stats {
    position: absolute;
    bottom: 0;
    left: -2rem;
    right: 2rem;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 1.5rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-glass);
}

.stat-box-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}

.stat-box {
    text-align: center;
    transition: var(--transition);
}

.stat-box:hover {
    transform: translateY(-5px);
}

.stat-number {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--secondary-color);
    margin-bottom: 0.25rem;
}

.stat-box p {
    font-size: 0.8rem;
    line-height: 1.2;
}

/* =========================================
   FACULTY
   ========================================= */
.faculty-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.faculty-card {
    text-align: center;
    background: var(--bg-white);
    padding: 2rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
}

.faculty-avatar {
    width: 120px;
    height: 120px;
    background: var(--bg-light);
    border-radius: 50%;
    margin: 0 auto 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-light);
    border: 4px solid var(--primary-light);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}

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

.faculty-card:hover .faculty-avatar {
    transform: scale(1.05);
    border-color: var(--secondary-color);
}

/* =========================================
   FAQ SECTION
   ========================================= */
.faq-layout {
    display: flex;
    gap: 3rem;
    align-items: flex-start;
}
.faq-left {
    flex: 0 0 65%;
    max-width: 65%;
}
.faq-right {
    flex: 0 0 35%;
    max-width: 35%;
}

.faq-tabs {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 1rem;
    flex-wrap: wrap;
}
.faq-tab-btn {
    background: none;
    border: none;
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-body);
    cursor: pointer;
    padding: 0.5rem 1rem;
    transition: var(--transition);
}
.faq-tab-btn.active {
    color: var(--primary-color);
    border-bottom: 3px solid var(--primary-color);
    margin-bottom: -1rem;
}
.faq-tab-content {
    display: none;
}
.faq-tab-content.active {
    display: block;
    animation: fadeIn 0.4s ease;
}

.faq-item {
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    margin-bottom: 1rem;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.faq-question {
    width: 100%;
    text-align: left;
    padding: 1.5rem;
    background: transparent;
    border: none;
    font-family: var(--font-heading);
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-dark);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: var(--transition);
}

.faq-question:hover {
    color: var(--primary-color);
}

.faq-question i {
    color: var(--primary-light);
    transition: transform 0.3s ease;
}

.faq-question.active {
    color: var(--primary-color);
    border-bottom: 1px solid var(--border-color);
}

.faq-question.active i {
    transform: rotate(180deg);
}

.faq-answer {
    padding: 0;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease-out;
}

.answer-content {
    padding: 1.5rem;
    color: var(--text-body);
}

.answer-content p {
    margin-bottom: 0.75rem;
}

.answer-content.truncated {
    max-height: 120px;
    position: relative;
    overflow: hidden;
}

.answer-content.truncated::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 40px;
    background: linear-gradient(transparent, var(--bg-white));
}

.read-more-btn {
    background: none;
    border: none;
    color: var(--primary-color);
    font-weight: 600;
    cursor: pointer;
    padding: 0.5rem 0;
    margin-bottom: 1rem;
    margin-left: 1.5rem;
    text-decoration: underline;
}

.sticky-form {
    position: sticky;
    top: 100px;
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    padding: 2.5rem;
    box-shadow: var(--shadow-md);
}

.sticky-form h3 {
    margin-bottom: 0.5rem;
}

@media (max-width: 992px) {
    .faq-layout {
        flex-direction: column;
    }
    .faq-left, .faq-right {
        flex: 1;
        max-width: 100%;
        width: 100%;
    }
}

/* =========================================
   FOOTER
   ========================================= */
.footer {
    background-color: var(--text-dark);
    color: #e2e8f0;
    padding: 5rem 0 2rem;
}

.footer h2, .footer h3 {
    color: white;
}

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

.footer-info p {
    margin-top: 1rem;
    margin-bottom: 1.5rem;
    color: var(--text-light);
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: white;
}

.social-links a:hover {
    background: var(--primary-color);
    transform: translateY(-3px);
}

.footer-contact p, .footer-address p {
    margin-bottom: 1rem;
    color: var(--text-light);
    font-size: 0.875rem;
}

.footer-contact i {
    color: var(--primary-light);
    margin-right: 0.5rem;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    font-size: 0.875rem;
    color: var(--text-light);
}

.footer-links {
    display: flex;
    gap: 1.5rem;
}

.footer-links a {
    color: var(--text-light);
}

.footer-links a:hover {
    color: white;
}

/* =========================================
   RESPONSIVE
   ========================================= */
@media (max-width: 992px) {
    .hero-container {
        flex-direction: column;
        text-align: center;
    }
    
    .hero-content {
        margin: 0 auto;
    }
    
    .hero-features {
        justify-content: center;
    }
    
    .flex-row {
        flex-direction: column;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .header-contact .contact-number {
        display: none;
    }
    
    .tabs-header {
        flex-direction: column;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
}
