/* --- 1. Variables & Base Setup --- */
:root {
    --bg: #f8fafc;
    --card-bg: #ffffff;
    --primary-grad: linear-gradient(135deg, #0f172a 0%, #2563eb 100%);
    --text-dark: #1e293b;
    --text-light: #64748b;
    --accent: #2563eb;
    --border: #e2e8f0;
    --footer-bg: #0f172a;
}

* { box-sizing: border-box; }

body {
    font-family: 'Inter', -apple-system, sans-serif;
    background-color: var(--bg);
    color: var(--text-dark);
    margin: 0;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

/* --- 2. Professional Header --- */
.main-header {
    padding: 80px 20px;
    text-align: center;
    background: white;
}
.logo-text {
    font-size: 3.5rem;
    font-weight: 800;
    margin: 0;
    background: var(--primary-grad);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -3px;
}

/* Final Header Fixes */
@media (max-width: 768px) {
    .responsive-logo {
        font-size: 1.6rem !important;
        font-weight: 800 !important;
        /* Removing complex gradient for absolute clarity on small screens */
        background: none !important;
        -webkit-text-fill-color: #0f172a !important; 
        color: #0f172a !important;
    }
}


/* --- 3. Navigation (Sticky & Minimal) --- */
.tab-wrapper {
    position: sticky;
    top: 0;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    z-index: 1000;
}
.tabs-container {
    max-width: 600px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    overflow-x: auto;
    scrollbar-width: none; /* Hide scrollbar Firefox */
}
.tabs-container::-webkit-scrollbar { display: none; } /* Hide scrollbar Chrome */

.tab-link {
    padding: 20px 25px;
    border: none;
    background: none;
    font-weight: 600;
    color: var(--text-light);
    cursor: pointer;
    transition: 0.2s;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.tab-link.active {
    color: var(--accent);
    box-shadow: inset 0 -3px 0 var(--accent);
}

/* --- 4. Content & Cards --- */
.container { 
    max-width: 1200px; 
    margin: 40px auto; 
    padding: 0 20px; 
}
.tab-content { display: none; }
.tab-content.active { display: block; animation: slideUp 0.4s ease-out; }

.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 24px;
}

.premium-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 20px;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    overflow: hidden;
    -webkit-tap-highlight-color: transparent;
}

/* Mobile Touch Effect (The Professional "Press") */
.premium-card:active {
    transform: scale(0.96);
    background-color: #f1f5f9;
}

/* Desktop Hover */
@media (hover: hover) {
    .premium-card:hover {
        transform: translateY(-8px);
        box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
        border-color: var(--accent);
    }
}

.card-body { padding: 32px; flex-grow: 1; }
.card-body h3 { 
    margin: 0 0 12px 0; 
    font-size: 1.5rem; 
    font-weight: 700; 
    color: #0f172a;
}
.card-body p { 
    margin: 0; 
    color: var(--text-light); 
    font-size: 1rem; 
    line-height: 1.6; 
}

.card-footer {
    padding: 20px 32px;
    background: #f8fafc;
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 700;
    font-size: 0.85rem;
    color: var(--accent);
    text-transform: uppercase;
}

/* --- 5. Professional Footer --- */
.main-footer {
    background: var(--footer-bg);
    color: #ffffff;
    padding: 80px 20px 40px;
    text-align: center;
    margin-top: 80px;
}
.footer-cta { margin-bottom: 48px; }

.action-btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 16px 32px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 700;
    margin: 8px;
    transition: 0.3s;
}
.action-btn.email { background: #ffffff; color: #0f172a; }
.action-btn.call { background: transparent; border: 2px solid #334155; color: #ffffff; }

.social-strip { margin-bottom: 40px; }
.social-strip a {
    color: #94a3b8; /* Muted grey initially */
    font-size: 1.6rem;
    margin: 0 18px;
    transition: 0.3s ease;
    display: inline-block;
}

/* Specifically targeting the social icons for maximum visibility */
.social-strip a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.1); /* Subtle circle background */
    border-radius: 50%;
    color: #ffffff !important; /* Forces the icon to be white */
    font-size: 1.2rem;
    margin: 0 10px;
    transition: all 0.3s ease;
    text-decoration: none;
}

.social-strip a:hover {
    background: var(--accent);
    transform: translateY(-3px);
    color: #ffffff !important;
}

/* Specific fix for X-Twitter if it still acts up */
.fa-x-twitter {
    display: inline-block !important;
    visibility: visible !important;
}

.legal-links { margin-bottom: 30px; display: flex; flex-wrap: wrap; justify-content: center; gap: 20px; }
.legal-links a {
    color: #64748b;
    text-decoration: none;
    font-size: 0.9rem;
    transition: 0.2s;
}
.legal-links a:hover { color: #ffffff; }

.copyright { 
    color: #475569; 
    font-size: 0.85rem; 
    margin-top: 40px; 
    padding-top: 20px; 
    border-top: 1px solid #1e293b; 
}

/* Animations */
@keyframes slideUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Mobile Adjustments */
@media (max-width: 768px) {
    .logo-text { font-size: 2.5rem; }
    .main-header { padding: 50px 20px; }
    .card-grid { grid-template-columns: 1fr; }
}

/* Subject Page Icon Animation */
.premium-card i {
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.premium-card:hover i {
    transform: scale(1.2) rotate(5deg);
}

.premium-card:active i {
    transform: scale(0.9);
}

/* Premium Accordion Styling */
.accordion-container {
    max-width: 800px;
    margin: 0 auto;
}

.premium-accordion {
    background: white;
    border: 1px solid var(--border);
    border-radius: 12px;
    margin-bottom: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.premium-accordion[open] {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.05);
    border-color: var(--accent);
}

.premium-accordion summary {
    padding: 20px;
    font-weight: 600;
    cursor: pointer;
    list-style: none; /* Hides default arrow */
    display: flex;
    justify-content: space-between;
    align-items: center;
    user-select: none;
}

/* Custom arrow animation */
.premium-accordion summary i {
    transition: transform 0.3s ease;
    color: var(--text-light);
}

.premium-accordion[open] summary i {
    transform: rotate(180deg);
    color: var(--accent);
}

.accordion-content {
    padding: 0 20px 20px;
    border-top: 1px solid var(--border);
    background: #fdfdfd;
}

/* Resource List inside Accordion */
.resource-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.resource-list li a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    color: var(--text-dark);
    text-decoration: none;
    font-size: 0.95rem;
    border-bottom: 1px solid #f1f5f9;
}

.resource-list li:last-child a { border-bottom: none; }

.resource-list li a i {
    color: var(--accent);
    font-size: 1.1rem;
}

.resource-list li a:hover {
    color: var(--accent);
}