/* Base Variables */
:root {
    --primary-color: #3b82f6;
    --secondary-color: #1e40af;
    --text-color: #333;
    --light-text: #666;
    --lighter-text: #888;
    --background-color: #fff;
    --light-background: #f9fafb;
    --border-color: #e5e7eb;
    --success-color: #10b981;
    --warning-color: #f59e0b;
    --danger-color: #ef4444;
    --box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
    --border-radius: 8px;
    --container-width: 1200px;
}
/* Dark Mode Variables */
.dark-mode {
    --primary-color: #60a5fa;
    --secondary-color: #3b82f6;
    --text-color: #f3f4f6;
    --light-text: #e5e7eb;
    --lighter-text: #d1d5db;
    --background-color: #111827;
    --light-background: #1f2937;
    --border-color: #374151;
    --box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
}

/* Reset and Base Styles */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

header nav ul {
    display: flex;
    align-items: center;
    list-style: none;
    margin: 0; /* Removed top and bottom margin */
    padding: 0;
    gap: 1.5rem;
}
html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--background-color);
    transition: var(--transition);
    overflow-x: hidden;
}

/* Container */
.container {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 1rem;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Poppins', sans-serif;
    line-height: 1.3;
    margin-bottom: 1rem;
    color: var(--text-color);
}

h1 {
    font-size: 2.5rem;
    font-weight: 700;
}

h2 {
    font-size: 2rem;
    font-weight: 600;
}

h3 {
    font-size: 1.5rem;
    font-weight: 600;
}

p {
    margin-bottom: 1rem;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--secondary-color);
}

/* Header Styles */
header {
    background-color: var(--background-color);
    box-shadow: var(--box-shadow);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
    transition: var(--transition);
    width: 100%;
    border-bottom: 1px solid var(--border-color);
}

/* Logo styling update */
.logo {
    font-family: 'Poppins', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-left: 1rem; /* Add left margin to the logo */
    padding: 0.5rem 0;
}

/* Header and navigation updates */
header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 1rem;
    position: relative;
}

nav {
    display: flex;
    align-items: center;
}

/* Mobile menu button positioning */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: var(--text-color);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 50%;
    width: 2.5rem;
    height: 2.5rem;
    align-items: center;
    justify-content: center;
    margin-left: auto;
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
}

/* Media queries for responsive design */
@media (max-width: 768px) {
    header nav ul {
        margin: 0; /* Explicitly remove margins for mobile/tablet */
        padding: 0.5rem 0; /* Add minimal padding instead of margin if needed */
    }
    
    /* If you have a mobile menu that opens vertically */
    header nav ul.active {
        margin-top: 0;
        margin-bottom: 0;
    }
    .mobile-menu-btn {
        display: flex;
    }
    
    header .container {
        position: relative;
    }
    
    nav {
        width: auto;
        position: static;
    }
    nav ul {
        position: fixed;
        top: 50px; /* Reduced from 60px */
        right: -100%;
        width: 50%;
        max-width: 300px;
        height: calc(100vh - 50px); /* Adjusted to match new top value */
        background-color: var(--background-color);
        flex-direction: column;
        align-items: flex-start;
        justify-content: flex-start;
        padding: 1.5rem; /* Slightly reduced padding */
        transition: 0.3s ease;
        z-index: 99;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
        border-left: 1px solid var(--border-color);
        overflow-y: auto;
    }
}
nav ul {
    display: flex;
    list-style: none;
    gap: 1.5rem;
    align-items: center;
}

nav ul li a {
    color: var(--text-color);
    font-weight: 500;
    padding: 0.5rem 0;
    position: relative;
}

nav ul li a:hover {
    color: var(--primary-color);
}

nav ul li a.active {
    color: var(--primary-color);
}

nav ul li a.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--primary-color);
    border-radius: 2px;
}

#theme-toggle {
    background: none;
    border: none;
    color: var(--text-color);
    cursor: pointer;
    font-size: 1.2rem;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem;
    border-radius: 50%;
    width: 2.5rem;
    height: 2.5rem;
}

#theme-toggle:hover {
    color: var(--primary-color);
    background-color: var(--light-background);
}

/* Mobile menu button */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: var(--text-color);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 50%;
    width: 2.5rem;
    height: 2.5rem;
    align-items: center;
    justify-content: center;
}

.mobile-menu-btn:hover {
    background-color: var(--light-background);
}

/* Hero Section */
.hero {
    background-color: var(--light-background);
    padding: 3rem 0;
    border-bottom: 1px solid var(--border-color);
}

.hero h1 {
    margin-bottom: 1rem;
}

.meta-info {
    display: flex;
    gap: 1.5rem;
    color: var(--light-text);
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.highlight-box {
    background-color: var(--background-color);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    box-shadow: var(--box-shadow);
    margin-top: 1.5rem;
    border-left: 4px solid var(--primary-color);
}

/* Content Section */
.content-section {
    padding: 3rem 0;
}

.content-section .container {
    display: flex;
    gap: 2rem;
}

.result-content {
    flex: 1;
}

.sidebar {
    width: 350px;
    flex-shrink: 0;
}

/* Announcement Box */
.announcement {
    background-color: var(--light-background);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    margin-bottom: 2rem;
    border: 1px solid var(--border-color);
}

/* Result Box */
.result-box {
    background-color: var(--background-color);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    margin-bottom: 2rem;
    box-shadow: var(--box-shadow);
    border-top: 4px solid var(--primary-color);
}

.result-box h3 {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary-color);
}

/* Overview Section */
.overview-section {
    margin-bottom: 2rem;
}

/* Info Table */
.info-table {
    margin-bottom: 2rem;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.info-table table {
    width: 100%;
    border-collapse: collapse;
    border: 1px solid var(--border-color);
}

.info-table th, .info-table td {
    padding: 0.75rem 1rem;
    border: 1px solid var(--border-color);
    text-align: left;
}

.info-table th {
    background-color: var(--light-background);
    font-weight: 600;
}

/* Table Responsive Wrapper */
.table-responsive {
    display: block;
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin-bottom: 1rem;
}

/* Download Section */
.download-section {
    margin-bottom: 2rem;
}

.download-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: var(--light-background);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    margin-top: 1.5rem;
    border: 1px solid var(--border-color);
}

.download-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.file-icon {
    font-size: 2rem;
    color: var(--primary-color);
}

.file-details h4 {
    margin-bottom: 0.25rem;
}

.file-details p {
    color: var(--light-text);
    margin-bottom: 0;
}

.download-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    border-radius: var(--border-radius);
    font-weight: 500;
    transition: var(--transition);
    cursor: pointer;
}

.download-btn.primary {
    background-color: var(--primary-color);
    color: white;
}

.download-btn.primary:hover {
    background-color: var(--secondary-color);
}

.download-btn.large {
    padding: 1rem 2rem;
    font-size: 1.1rem;
}

/* Steps Section */
.steps-section {
    margin-bottom: 2rem;
}

.steps-container {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 1.5rem;
}

.step-card {
    display: flex;
    gap: 1rem;
    background-color: var(--light-background);
    border-radius: var(--border-radius);
    padding: 1rem;
}

.step-number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    background-color: var(--primary-color);
    color: white;
    border-radius: 50%;
    font-weight: 600;
    flex-shrink: 0;
}

.step-content {
    flex: 1;
}

.step-content p {
    margin-bottom: 0;
}

/* Objection Section */
.objection-section {
    margin-bottom: 2rem;
}

/* Exam Pattern */
.exam-pattern {
    margin-bottom: 2rem;
}

/* Important Dates */
.important-dates {
    margin-bottom: 2rem;
}

/* CTA Section */
.cta-section {
    background-color: var(--light-background);
    border-radius: var(--border-radius);
    padding: 2rem;
    text-align: center;
    margin-bottom: 2rem;
    border: 1px solid var(--border-color);
}

.cta-section h3 {
    margin-bottom: 1rem;
}

.cta-section p {
    margin-bottom: 1.5rem;
}

/* Sidebar Widgets */
.widget {
    background-color: var(--background-color);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    margin-bottom: 2rem;
    box-shadow: var(--box-shadow);
}

.widget h3 {
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border-color);
}

.date-list {
    list-style: none;
}

.date-list li {
    display: flex;
    justify-content: space-between;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border-color);
}

.date-list li:last-child {
    border-bottom: none;
}

.date-label {
    font-weight: 600;
}

.date-value {
    color: var(--primary-color);
}

.link-list {
    list-style: none;
}

.link-list li {
    margin-bottom: 0.75rem;
}

.link-list li:last-child {
    margin-bottom: 0;
}

.link-list li a {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-color);
}

.link-list li a:hover {
    color: var(--primary-color);
}

/* Social Connect Grid */
.social-connect-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 0.75rem;
    margin-top: 1rem;
}

.social-connect-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    border-radius: var(--border-radius);
    color: white;
    text-decoration: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: center;
}

.social-connect-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.social-connect-card i {
    font-size: 1.75rem;
    margin-bottom: 0.5rem;
}

.social-connect-card span {
    font-weight: 500;
    font-size: 0.9rem;
}

.social-connect-card.telegram {
    background-color: #0088cc;
}

.social-connect-card.whatsapp {
    background-color: #25D366;
}

.social-connect-card.youtube {
    background-color: #FF0000;
}

/* Footer */
footer {
    background-color: var(--light-background);
    padding: 3rem 0 1.5rem;
    margin-top: 3rem;
    border-top: 1px solid var(--border-color);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-about h3, .footer-links h3, .footer-contact h3 {
    margin-bottom: 1.25rem;
    position: relative;
    padding-bottom: 0.75rem;
}

.footer-about h3:after, .footer-links h3:after, .footer-contact h3:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background-color: var(--primary-color);
    border-radius: 3px;
}

.footer-links ul {
    list-style: none;
}

.footer-links ul li {
    margin-bottom: 0.75rem;
}

.footer-links ul li a {
    color: var(--text-color);
    transition: color 0.3s ease;
    display: inline-block;
    position: relative;
}

.footer-links ul li a:hover {
    color: var(--primary-color);
}

.footer-links ul li a:before {
    content: '→';
    margin-right: 0.5rem;
    color: var(--primary-color);
    transition: transform 0.3s ease;
    display: inline-block;
}

.footer-links ul li a:hover:before {
    transform: translateX(3px);
}

.footer-social-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 0.75rem;
    margin-top: 1rem;
}

.footer-social-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem;
    border-radius: var(--border-radius);
    color: white;
    text-decoration: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    font-weight: 500;
}

.footer-social-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.footer-social-btn i {
    margin-right: 0.5rem;
}

.footer-social-btn.telegram {
    background-color: #0088cc;
}

.footer-social-btn.whatsapp {
    background-color: #25D366;
}

.footer-social-btn.youtube {
    background-color: #FF0000;
}

.footer-bottom {
    text-align: center;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color);
    color: var(--lighter-text);
    font-size: 0.9rem;
}

/* Update the preloader styles in your CSS file */
.preloader {
    display: none; /* Hide preloader by default */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--background-color);
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.5s ease;
}

.preloader.hidden {
    opacity: 0;
    pointer-events: none;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(59, 130, 246, 0.2);
    border-radius: 50%;
    border-top-color: var(--primary-color);
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 3rem;
    height: 3rem;
    background-color: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    border: none;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    z-index: 90;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background-color: var(--secondary-color);
    transform: translateY(-3px);
}

/* Nav Overlay */
.nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 98;
    opacity: 0;
    visibility: hidden;
    transition: 0.3s ease;
}

.nav-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Responsive Styles */
@media (max-width: 1200px) {
    .container {
        max-width: 960px;
    }
}

@media (max-width: 992px) {
    .container {
        max-width: 720px;
    }
    
    .content-section .container {
        flex-direction: column;
    }
    
    .sidebar {
        width: 100%;
    }
    
    h1 {
        font-size: 2.2rem;
    }
    
    h2 {
        font-size: 1.8rem;
    }
}

@media (max-width: 768px) {
    .container {
        max-width: 540px;
    }
    
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.75rem;
    }
    
    h3 {
        font-size: 1.25rem;
    }
    
    .meta-info {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .download-card {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .download-btn {
        width: 100%;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    /* Mobile menu adjustments */
    .mobile-menu-btn {
        display: flex;
    }
    
    nav ul {
        position: fixed;
        top: 70px;
        right: -100%;
        width: 80%;
        max-width: 300px;
        height: calc(100vh - 70px);
        background-color: var(--background-color);
        flex-direction: column;
        align-items: flex-start;
        justify-content: flex-start;
        padding: 2rem;
        transition: 0.3s ease;
        z-index: 99;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
        border-left: 1px solid var(--border-color);
        overflow-y: auto;
    }
    
    nav ul.active {
        right: 0;
    }
    
    nav ul li {
        margin: 0.75rem 0;
        width: 100%;
    }
    
    nav ul li a {
        width: 100%;
        padding: 0.5rem 0;
    }
    
    .date-list li {
        flex-direction: column;
        padding: 0.5rem 0;
    }
    
    .date-label {
        margin-bottom: 0.25rem;
    }
    
    .social-connect-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .footer-social-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .back-to-top {
        bottom: 1rem;
        right: 1rem;
    }
    
    /* Adjust announcement and result box padding */
    .announcement, .result-box, .overview-section {
        padding: 1rem;
    }
    
    /* Make tables more mobile-friendly */
    .info-table th, .info-table td {
        padding: 0.5rem;
        font-size: 0.9rem;
    }
}

@media (max-width: 576px) {
    h1 {
        font-size: 1.75rem;
    }
    
    .social-connect-grid {
        grid-template-columns: 1fr 1fr;
    }
    
    .footer-social-grid {
        grid-template-columns: 1fr 1fr;
        gap: 0.5rem;
    }
    
    .footer-about h3, .footer-links h3, .footer-contact h3 {
        font-size: 1.2rem;
    }
    
    .step-card {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .step-number {
        margin-bottom: 0.5rem;
    }
    
    .highlight-box {
        padding: 1rem;
    }
    
    .download-btn.large {
        padding: 0.75rem 1.5rem;
        font-size: 1rem;
    }
    
    /* Further reduce padding for mobile */
    .announcement, .result-box, .overview-section {
        padding: 0.75rem;
    }
    
    .info-table th, .info-table td {
        padding: 0.4rem;
        font-size: 0.85rem;
    }
    
    .widget {
        padding: 1rem;
    }
    
    .cta-section {
        padding: 1.5rem 1rem;
    }
}

@media (max-width: 375px) {
    .social-connect-grid, 
    .footer-social-grid {
        grid-template-columns: 1fr;
    }
    
    .hero {
        padding: 2rem 0;
    }
    
    .content-section {
        padding: 2rem 0;
    }
    
    h1 {
        font-size: 1.5rem;
    }
    
    h2 {
        font-size: 1.35rem;
    }
    
    h3 {
        font-size: 1.15rem;
    }
    
    .download-info {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .file-icon {
        margin-bottom: 0.5rem;
    }
}
