/* Base Styles */
: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: #e5e7eb;
    --light-text: #d1d5db;
    --lighter-text: #9ca3af;
    --background-color: #111827;
    --light-background: #1f2937;
    --border-color: #374151;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--background-color);
    transition: var(--transition);
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--secondary-color);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 1rem;
    color: var(--text-color);
}

h1 {
    font-size: 2.5rem;
    font-weight: 700;
}

h2 {
    font-size: 2rem;
}

h3 {
    font-size: 1.5rem;
}

h4 {
    font-size: 1.25rem;
}

p {
    margin-bottom: 1.5rem;
}

/* Header Styles - UPDATED for better responsive layout */
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%;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: 'Poppins', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

nav {
    display: flex;
    align-items: center;
}

nav ul {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

nav ul li a {
    color: var(--text-color);
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

nav ul li a:hover,
nav ul li a.active {
    color: var(--primary-color);
}

#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;
}

#theme-toggle:hover {
    color: var(--primary-color);
}

/* Mobile menu button */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: var(--text-color);
    font-size: 1.5rem;
    cursor: pointer;
}

/* Hero Section */
.hero {
    background-color: var(--light-background);
    padding: 3rem 0;
    margin-bottom: 2rem;
}

.hero h1 {
    margin-bottom: 1rem;
}

.meta-info {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
    color: var(--light-text);
    font-size: 0.9rem;
}

.meta-info span {
    display: flex;
    align-items: center;
}

.meta-info i {
    margin-right: 0.5rem;
}

.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);
}

.highlight-box p {
    margin-bottom: 1rem;
}

/* Content Section */
.content-section {
    padding: 2rem 0;
}

.content-section .container {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
}

.result-content {
    flex: 1;
    min-width: 0;
}

.sidebar {
    width: 300px;
}

.announcement {
    background-color: var(--light-background);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.result-box {
    background-color: var(--background-color);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    box-shadow: var(--box-shadow);
    margin-bottom: 2rem;
    border-left: 4px solid var(--warning-color);
}

.result-box h3 {
    display: flex;
    align-items: center;
    color: var(--warning-color);
}

.result-box h3 i {
    margin-right: 0.5rem;
}

.overview-section {
    margin-bottom: 2rem;
}

/* Table Styles - IMPROVED for better responsiveness */
.info-table {
    margin-bottom: 2rem;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    width: 100%;
}

.info-table table {
    width: 100%;
    border-collapse: collapse;
    border-radius: var(--border-radius);
    overflow: hidden;
    min-width: 600px;
}

.info-table th,
.info-table td {
    padding: 0.75rem 1rem;
    text-align: left;
    border: 1px solid var(--border-color);
}

.info-table th {
    background-color: var(--light-background);
    font-weight: 600;
    color: var(--text-color);
}

.info-table tr:nth-child(even) {
    background-color: var(--light-background);
}

.info-table tr:hover {
    background-color: rgba(59, 130, 246, 0.05);
}

/* Download Section */
.download-section {
    margin-bottom: 2rem;
}

.download-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: var(--light-background);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    margin-bottom: 1rem;
    box-shadow: var(--box-shadow);
}

.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;
    text-decoration: none;
}

.download-btn.primary {
    background-color: var(--primary-color);
    color: white;
}

.download-btn.primary:hover {
    background-color: var(--secondary-color);
}

.download-btn i {
    margin-right: 0.5rem;
}

.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;
}

.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: 2.5rem;
    height: 2.5rem;
    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;
}

.cta-section h3 {
    margin-bottom: 1rem;
}

.cta-section p {
    margin-bottom: 1.5rem;
}

/* Sidebar Styles */
.sidebar {
    flex-shrink: 0;
}

.widget {
    background-color: var(--light-background);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.widget h3 {
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border-color);
}

.date-list li {
    margin-bottom: 0.75rem;
    display: flex;
    flex-direction: column;
}

.date-label {
    font-weight: 500;
    color: var(--text-color);
}

.link-list li {
    margin-bottom: 0.75rem;
}

.link-list li a {
    display: flex;
    align-items: center;
}

.link-list li a i {
    margin-right: 0.5rem;
    width: 1rem;
    text-align: center;
}

.social-links li {
    margin-bottom: 0.75rem;
}

.social-links li a {
    display: flex;
    align-items: center;
}

.social-links li a i {
    margin-right: 0.5rem;
    width: 1rem;
    text-align: center;
}

/* Footer Styles - IMPROVED for better responsiveness */
footer {
    background-color: var(--light-background);
    padding: 3rem 0 1.5rem;
    margin-top: 3rem;
    border-top: 1px solid var(--border-color);
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-about {
    flex: 2;
    min-width: 250px;
}

.footer-links, .footer-contact {
    flex: 1;
    min-width: 200px;
}

.footer-about h3, .footer-links h3, .footer-contact h3 {
    margin-bottom: 1rem;
}

.footer-links ul li {
    margin-bottom: 0.5rem;
}

.footer-contact p {
    display: flex;
    align-items: center;
    margin-bottom: 0.5rem;
}

.footer-contact p i {
    margin-right: 0.5rem;
    width: 1rem;
    text-align: center;
}

.footer-contact .social-links {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.footer-contact .social-links li a {
    color: var(--text-color);
    transition: var(--transition);
}

.footer-contact .social-links li a:hover {
    color: var(--primary-color);
}

.footer-bottom {
    text-align: center;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color);
    color: var(--lighter-text);
    font-size: 0.9rem;
}

/* Responsive Styles - IMPROVED for all device sizes */
@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 {
        flex-direction: column;
        gap: 1.5rem;
    }
    
    .footer-about, .footer-links, .footer-contact {
        min-width: 100%;
    }
    
    /* Mobile menu adjustments */
    .mobile-menu-btn {
        display: block;
    }
    
    nav ul {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background-color: var(--background-color);
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        padding-top: 2rem;
        transition: 0.3s;
        z-index: 99;
    }
    
    nav ul.active {
        left: 0;
    }
    
    nav ul li {
        margin: 1rem 0;
    }
}

@media (max-width: 576px) {
    .container {
        padding: 0 15px;
    }
    
    header {
        padding: 0.75rem 0;
    }
    
    .logo {
        font-size: 1.25rem;
    }
    
    .hero {
        padding: 2rem 0;
    }
    
    .highlight-box {
        padding: 1rem;
    }
    
    .step-card {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .step-number {
        margin-bottom: 0.5rem;
    }
    
    .download-info {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .file-icon {
        margin-bottom: 0.5rem;
    }
    
    h1 {
        font-size: 1.75rem;
    }
    
    h2 {
        font-size: 1.5rem;
    }
    
    h3 {
        font-size: 1.25rem;
    }
    
    .announcement, .result-box, .widget {
        padding: 1rem;
    }
}

@media (max-width: 375px) {
    h1 {
        font-size: 1.5rem;
    }
    
    .logo {
        font-size: 1.1rem;
    }
    
    .download-btn {
        padding: 0.6rem 1.2rem;
        font-size: 0.9rem;
    }
    
    .download-btn.large {
        padding: 0.8rem 1.5rem;
        font-size: 1rem;
    }
}

/* Utility Classes */
.text-center {
    text-align: center;
}

.mb-0 {
    margin-bottom: 0;
}

.mb-1 {
    margin-bottom: 0.5rem;
}

.mb-2 {
    margin-bottom: 1rem;
}

.mb-3 {
    margin-bottom: 1.5rem;
}

.mb-4 {
    margin-bottom: 2rem;
}

.mt-0 {
    margin-top: 0;
}

.mt-1 {
    margin-top: 0.5rem;
}

.mt-2 {
    margin-top: 1rem;
}

.mt-3 {
    margin-top: 1.5rem;
}

.mt-4 {
    margin-top: 2rem;
}

/* Mobile menu script */
.show-menu {
    display: block !important;
}

/* Fix for table responsiveness */
@media (max-width: 768px) {
    .info-table {
        display: block;
        width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
}