/* Color Variables */
:root {
    /* Base Colors */
    --primary: #4f46e5;
    --primary-dark: #3730a3;
    --primary-light: #818cf8;
    --secondary: #0f172a;
    --accent: #f59e0b;
    --white: #ffffff;
    --gray-100: #f1f5f9;
    --gray-200: #e2e8f0;
    --text-dark: #1e293b;
    --text-light: #64748b;
    
    /* Hero Section Colors */
    --hero-gradient-1: #60a5fa;
    --hero-gradient-2: #93c5fd;
    --hero-text-dark: #0f172a;
    --hero-text-light: #334155;
    --hero-light: #ffffff;
    
    --success: #22c55e;
    --error: #ef4444;
    --background: #f8fafc;
    
    --container-padding: 2rem;
    --container-max-width: 1200px;
}

/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--background);
    margin: 0;
    padding: 0;
}

/* Base Mobile-First Styles */
.container {
    width: 100%;
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 1rem var(--container-padding);
}

/* Modern Navigation */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: #333;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
}

.navbar {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    padding: 0.75rem var(--container-padding);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: all 0.3s ease;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.navbar .logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-dark);
    text-decoration: none;
}

.navbar .logo img {
    height: 32px;
    width: auto;
}

.nav-links {
    display: none;
    width: 100%;
    padding: 0;
    margin-top: 1rem;
    border-top: 1px solid var(--gray-200);
    transform: translateY(-10px);
    opacity: 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.nav-links.active {
    display: block;
    transform: translateY(0);
    opacity: 1;
}

.nav-links li {
    list-style: none;
    margin: 0;
}

.nav-links a {
    display: block;
    padding: 1rem;
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 500;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.nav-links a:hover,
.nav-links a:focus {
    color: var(--primary);
    background-color: var(--gray-100);
    padding-left: 1.5rem;
}

/* Mobile Menu Button */
.mobile-menu-btn {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 24px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 8px;
    margin: -8px;
    touch-action: manipulation;
}

.mobile-menu-btn span {
    width: 100%;
    height: 2px;
    background-color: var(--text-dark);
    border-radius: 2px;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.mobile-menu-btn.active span:nth-child(1) {
    transform: translateY(11px) rotate(45deg);
}

.mobile-menu-btn.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-btn.active span:nth-child(3) {
    transform: translateY(-11px) rotate(-45deg);
}

/* Desktop Navigation */
@media (min-width: 768px) {
    .mobile-menu-btn {
        display: none;
    }

    .nav-links {
        display: flex !important;
        width: auto;
        margin: 0;
        padding: 0;
        border: none;
        transform: none;
        opacity: 1;
    }

    .nav-links li {
        margin: 0 0.5rem;
    }

    .nav-links a {
        padding: 0.5rem 1rem;
        border-radius: 0.5rem;
    }

    .nav-links a:hover,
    .nav-links a:focus {
        padding-left: 1rem;
        background-color: var(--gray-100);
    }
}

/* Hero Section */
#hero {
    position: relative;
    min-height: 85vh;
    overflow: hidden;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, var(--hero-gradient-1), var(--hero-gradient-2));
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 50% 50%, var(--hero-overlay) 20%, transparent 80%);
    opacity: 0.8;
}

.hero-content {
    position: relative;
    z-index: 2;
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 4rem 2rem;
    gap: 4rem;
}

.hero-text {
    flex: 1;
    color: var(--white);
}

.hero-text h1 {
    font-size: 4.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    color: var(--hero-text-dark);
    text-shadow: 0 2px 10px rgba(255, 255, 255, 0.2);
    letter-spacing: -0.02em;
    line-height: 1.2;
    border: none;
}

.hero-subtitle {
    font-size: 1.75rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: var(--hero-text-dark);
    letter-spacing: -0.01em;
}

.hero-description {
    font-size: 1.2rem;
    line-height: 1.7;
    margin-bottom: 2.5rem;
    color: var(--hero-text-light);
    opacity: 0.9;
    max-width: 600px;
}

.hero-stats {
    display: flex;
    gap: 2rem;
    margin-bottom: 2rem;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--hero-text-dark);
    letter-spacing: -0.02em;
}

.stat-label {
    font-size: 1rem;
    font-weight: 500;
    color: var(--hero-text-light);
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

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

.cta-button {
    padding: 1rem 2rem;
    border-radius: 8px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
}

.cta-button.primary {
    background: var(--hero-text-dark);
    color: var(--hero-light);
    font-weight: 600;
    padding: 1.25rem 2.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(15, 23, 42, 0.15);
    transition: all 0.3s ease;
}

.cta-button.secondary {
    background: rgba(255, 255, 255, 0.2);
    color: var(--hero-text-dark);
    border: 2px solid var(--hero-text-dark);
    padding: 1.25rem 2.5rem;
    border-radius: 12px;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.cta-button.primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(15, 23, 42, 0.2);
    background: #1e293b;
}

.cta-button.secondary:hover {
    background: rgba(15, 23, 42, 0.1);
    transform: translateY(-3px);
}

.hero-image {
    flex: 1;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.main-illustration {
    width: 100%;
    max-width: 500px;
    height: auto;
    animation: pulse 2s infinite;
}

.floating-elements {
    position: absolute;
    width: 100%;
    height: 100%;
}

.float-item {
    position: absolute;
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(15, 23, 42, 0.2);
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.1);
    padding: 1rem;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--white);
    animation: float 6s infinite;
}

.float-item i {
    color: var(--hero-text-dark);
    font-size: 1.4rem;
}

.float-item span {
    color: var(--hero-text-dark);
    font-weight: 500;
    font-size: 1rem;
}

.shape {
    position: absolute;
    border-radius: 50%;
    background: linear-gradient(45deg, rgba(255, 255, 255, 0.4), transparent);
    opacity: 0.3;
    animation: float 20s infinite;
}

.shape-1 {
    width: 300px;
    height: 300px;
    top: -150px;
    right: -150px;
    animation-delay: 0s;
}

.shape-2 {
    width: 200px;
    height: 200px;
    bottom: -100px;
    left: -100px;
    animation-delay: -5s;
}

.shape-3 {
    width: 150px;
    height: 150px;
    bottom: 50%;
    right: 15%;
    animation-delay: -10s;
}

@keyframes float {
    0%, 100% {
        transform: translate(0, 0);
    }
    25% {
        transform: translate(10px, -10px);
    }
    50% {
        transform: translate(-5px, 5px);
    }
    75% {
        transform: translate(-10px, -5px);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.02);
    }
}

/* Main Content */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
    background-color: var(--white);
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.05);
    border-radius: 8px;
    margin-top: 2rem;
    margin-bottom: 2rem;
}

.content-sections {
    max-width: 100%;
    margin: 0 auto;
}

.content-sections section {
    margin-bottom: 3rem;
    padding: 2rem;
    background-color: var(--white);
    border-radius: 8px;
    border-left: 4px solid var(--primary-light);
}

/* CSS Page Specific Styles */
.content-sections {
    max-width: 1000px;
    margin: 2rem auto;
    padding: 2rem;
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.content-sections section {
    margin-bottom: 3rem;
    padding: 2rem;
    background: #fff;
    border-radius: 12px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.content-sections section:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.06);
}

.content-sections h1 {
    font-size: 2.5rem;
    color: var(--hero-text-dark);
    margin-bottom: 1.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--hero-gradient-1), var(--hero-gradient-2));
    -webkit-background-clip: text;
    background-clip: text;
    position: relative;
    display: inline-block;
}

.content-sections h2 {
    font-size: 1.8rem;
    color: var(--hero-text-dark);
    margin: 2rem 0 1rem;
    font-weight: 700;
    position: relative;
    padding-bottom: 0.5rem;
}

.content-sections h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background: var(--hero-gradient-1);
    border-radius: 2px;
}

.content-sections h3 {
    font-size: 1.4rem;
    color: var(--hero-text-dark);
    margin: 1.5rem 0 1rem;
    font-weight: 600;
}

.content-sections h4 {
    font-size: 1.2rem;
    color: var(--hero-text-dark);
    margin: 1.2rem 0 0.8rem;
    font-weight: 600;
}

.content-sections p {
    color: var(--hero-text-light);
    line-height: 1.8;
    margin-bottom: 1.2rem;
    font-size: 1.1rem;
}

.content-sections ul, 
.content-sections ol {
    margin: 1rem 0;
    padding-left: 1.5rem;
    color: var(--hero-text-light);
}

.content-sections li {
    margin-bottom: 0.8rem;
    line-height: 1.6;
    font-size: 1.1rem;
}

.content-sections strong {
    color: var(--hero-text-dark);
    font-weight: 600;
}

.content-sections ul ul {
    margin: 0.5rem 0;
}

.note {
    background: rgba(96, 165, 250, 0.1);
    padding: 1rem 1.5rem;
    border-radius: 8px;
    border-left: 4px solid var(--hero-gradient-1);
    margin: 1.5rem 0;
    font-style: italic;
}

#exam-structure ol {
    counter-reset: exam-counter;
    list-style: none;
    padding-left: 0;
}

#exam-structure ol li {
    counter-increment: exam-counter;
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
    padding: 0.5rem 1rem;
    background: rgba(96, 165, 250, 0.05);
    border-radius: 8px;
    transition: transform 0.2s ease;
}

#exam-structure ol li:hover {
    transform: translateX(5px);
}

#exam-structure ol li::before {
    content: counter(exam-counter);
    min-width: 2rem;
    height: 2rem;
    background: var(--hero-gradient-1);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
    font-weight: 600;
}

/* Responsive Breakpoints */
@media (max-width: 768px) {
    .content-sections {
        margin: 1rem;
        padding: 1rem;
    }

    .content-sections section {
        padding: 1.5rem;
    }

    .content-sections h1 {
        font-size: 2rem;
    }

    .content-sections h2 {
        font-size: 1.6rem;
    }

    .content-sections h3 {
        font-size: 1.3rem;
    }

    .content-sections p,
    .content-sections li {
        font-size: 1rem;
    }
}

/* Additional Responsive Breakpoints */
@media (min-width: 1024px) {
    .container {
        max-width: 960px;
        margin: 0 auto;
    }
    
    .hero-text h1 {
        font-size: 5rem;
    }
}

@media (min-width: 1200px) {
    .container {
        max-width: 1140px;
    }
}

/* Small mobile devices */
@media (max-width: 480px) {
    .hero-text h1 {
        font-size: 3rem;
    }
    
    .nav-links {
        gap: 0.5rem;
    }
    
    .container {
        padding: 1rem;
    }
}

/* Typography */
h1, h2, h3 {
    color: var(--text-dark);
    text-align: left;
    margin-bottom: 1.5rem;
    font-weight: 700;
}

h1 {
    font-size: 2.5rem;
    border-bottom: 3px solid var(--primary-light);
    padding-bottom: 0.5rem;
    margin-bottom: 2rem;
}

h2 {
    font-size: 2rem;
    color: var(--primary);
}

h3 {
    font-size: 1.5rem;
    color: var(--primary-light);
}

p {
    color: var(--text-light);
    margin-bottom: 1.2rem;
    font-size: 1.1rem;
}

/* Lists */
ul, ol {
    padding-left: 2rem;
    margin-bottom: 1.5rem;
}

li {
    margin-bottom: 0.8rem;
    color: var(--text-light);
}

/* Services Section */
#services {
    padding: 4rem 2rem;
    background: var(--white);
}

#services h2 {
    text-align: center;
    color: #000000;
    font-size: 2.5rem;
    margin-bottom: 3rem;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.service-card {
    background: var(--white);
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    border: 1px solid var(--gray-200);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
    border-color: var(--primary-light);
}

.service-card i {
    font-size: 2.5rem;
    color: var(--hero-gradient-1);
    margin-bottom: 0.5rem;
    transition: color 0.3s ease;
}

.service-card:hover i {
    color: var(--hero-gradient-2);
}

.service-card h3 {
    color: #000000;
    font-size: 1.5rem;
    margin: 0;
    font-weight: 600;
}

.service-card p {
    color: #000000;
    margin: 0;
    font-size: 1rem;
    line-height: 1.6;
}

@media (max-width: 1024px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
        padding: 0 1.5rem;
    }
}

@media (max-width: 640px) {
    .services-grid {
        grid-template-columns: 1fr;
        padding: 0 1rem;
    }
    
    .service-card {
        padding: 1.5rem;
    }
    
    .service-card i {
        font-size: 2rem;
    }
}

/* Quick Access Section */
#quick-access {
    padding: 2rem 0;
    background: var(--gray-100);
}

#quick-access h2 {
    text-align: center;
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #000000;
}

.quick-links {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
    max-width: 800px;
    margin: 1.5rem auto;
    padding: 0 1rem;
}

.quick-link-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    padding: 0.75rem;
    background: var(--white);
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    border: 1px solid var(--gray-200);
    transition: all 0.3s ease;
    width: 120px;
}

.quick-link-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    border-color: var(--primary-light);
}

.quick-link-item i {
    color: var(--hero-gradient-1);
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    transition: color 0.3s ease;
}

.quick-link-item:hover i {
    color: var(--hero-gradient-2);
}

.quick-link-item span {
    color: #000000;
    font-weight: 500;
    text-align: center;
    font-size: 0.9rem;
}

@media (max-width: 768px) {
    .quick-links {
        gap: 0.75rem;
    }
    
    .quick-link-item {
        width: 100px;
        padding: 0.5rem;
    }
    
    .quick-link-item i {
        font-size: 1rem;
    }
    
    .quick-link-item span {
        font-size: 0.8rem;
    }
}

/* PMS Grid Layout */
.pms-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    padding: 2rem;
}

.pms-card,
.syllabus-card {
    display: block;
    text-decoration: none;
    background-color: #ffffff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease;
    margin-bottom: 20px;
    border: 1px solid #e5e7eb;
}

.pms-card:hover,
.syllabus-card:hover {
    transform: translateY(-5px);
}

.pms-card h2,
.syllabus-card h2 {
    color: #000000;
    font-family: 'Roboto', sans-serif;
    font-size: 18px;
    font-weight: 500;
    margin: 0;
    padding: 10px;
}

.pms-grid,
.syllabus-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    padding: 20px;
}

@media (max-width: 768px) {
    .pms-grid,
    .syllabus-grid {
        grid-template-columns: 1fr;
        padding: 1rem;
        gap: 1rem;
    }
    
    .pms-card,
    .syllabus-card {
        min-height: 80px;
        padding: 1.5rem;
    }
}

/* Syllabus Grid Layout */
.syllabus-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    padding: 2rem 0;
}

.syllabus-card {
    background: var(--white);
    border-radius: 8px;
    padding: 2rem;
    text-decoration: none;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: 1px solid var(--gray-200);
    text-align: center;
    min-height: 100px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.syllabus-card i {
    font-size: 2rem;
    color: var(--primary);
    transition: color 0.3s ease;
}

.syllabus-card:hover i {
    color: var(--primary-dark);
}

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

.syllabus-card h2 {
    margin: 0;
    color: var(--text-dark);
    font-size: 1.25rem;
    font-weight: 500;
}

@media (max-width: 768px) {
    .syllabus-grid {
        grid-template-columns: 1fr;
        padding: 1rem;
        gap: 1rem;
    }
    
    .syllabus-card {
        min-height: 80px;
    }
}

/* Unified Card Styles for PMS, Syllabus, and Downloads */
.pms-card,
.syllabus-card,
.download-card {
    background: #ffffff;
    border-radius: 8px;
    padding: 2rem;
    text-decoration: none;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease;
    text-align: center;
    margin-bottom: 20px;
    border: 1px solid #e5e7eb;
}

.pms-card:hover,
.syllabus-card:hover,
.download-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.pms-card h2,
.syllabus-card h2,
.download-card h2 {
    color: #000000;
    font-family: 'Roboto', sans-serif;
    font-size: 18px;
    font-weight: 500;
    margin: 0;
    padding: 10px;
}

.pms-grid,
.syllabus-grid,
.downloads-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    padding: 20px;
}

@media (max-width: 768px) {
    .pms-grid,
    .syllabus-grid,
    .downloads-grid {
        grid-template-columns: 1fr;
        gap: 15px;
        padding: 15px;
    }
    
    .pms-card,
    .syllabus-card,
    .download-card {
        padding: 1.5rem;
    }
}

/* Downloads Page */
.downloads-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    padding: 2rem 0;
}

.download-card {
    background: var(--white);
    border-radius: 8px;
    padding: 2rem;
    text-decoration: none;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: 1px solid var(--gray-200);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.download-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
    border-color: var(--primary-light);
}

.download-card i {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.download-card h2 {
    color: var(--primary);
    margin: 0;
    font-size: 1.2rem;
    font-weight: 500;
}

/* Download Page Text Colors */
.downloads-grid h1 {
    color: var(--hero-text-dark);
    background: linear-gradient(135deg, var(--hero-gradient-1), var(--hero-gradient-2));
    -webkit-background-clip: text;
    background-clip: text;
}

.download-card {
    color: var(--hero-text-dark);
    transition: color 0.3s ease;
}

.download-card:hover {
    color: var(--hero-gradient-1);
}

.download-card i {
    color: var(--hero-gradient-1);
    transition: color 0.3s ease;
}

.download-card:hover i {
    color: var(--hero-gradient-2);
}

.download-card h2 {
    color: var(--hero-text-dark);
    transition: color 0.3s ease;
}

.download-card:hover h2 {
    color: var(--hero-gradient-1);
}

@media (max-width: 768px) {
    .downloads-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 1rem;
        padding: 1rem;
    }
    
    .download-card {
        padding: 1.5rem;
    }
    
    .download-card i {
        font-size: 2rem;
    }
}

/* Footer */
footer {
    background-color: var(--secondary);
    color: var(--white);
    padding: 1.5rem;
    text-align: center;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.footer .social-link {
    color: var(--white);
    font-size: 1.2rem;
    text-decoration: none;
    transition: transform 0.3s ease;
    padding: 0.5rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
}

.footer .social-link:hover {
    transform: translateY(-3px);
    background: rgba(255, 255, 255, 0.2);
}

.social-link.facebook:hover {
    background: #1877f2;
}

.social-link.twitter:hover {
    background: #1da1f2;
}

.social-link.instagram:hover {
    background: linear-gradient(45deg, #405DE6, #5851DB, #833AB4, #C13584, #E1306C, #FD1D1D);
}

.social-link.youtube:hover {
    background: #ff0000;
}

.social-link.pinterest:hover {
    background: #e60023;
}

.social-link.snapchat:hover {
    background: #fffc00;
    color: #000000;
}

.social-link.tiktok:hover {
    background: #000000;
}

.social-link.threads:hover {
    background: #000000;
}

.social-link.telegram:hover {
    background: #0088cc;
}

.social-link.linkedin:hover {
    background: #0077b5;
}

@media (max-width: 768px) {
    .social-links {
        gap: 1rem;
    }
    
    .social-link {
        font-size: 1.25rem;
        width: 2.5rem;
        height: 2.5rem;
    }
}

/* CSS Syllabus Table Styling */
.subject-group {
    margin-bottom: 3rem;
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
}

.table-container {
    flex: 1;
    min-width: 300px;
}

.syllabus-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 1rem;
    background: #ffffff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    font-size: 0.9rem;
}

.syllabus-table th,
.syllabus-table td {
    padding: 8px 12px;
    text-align: left;
    border: 1px solid #e2e8f0;
}

.subject-group h2, 
.subject-group h3, 
.subject-group > p {
    width: 100%;
}

.note {
    width: 100%;
}

.syllabus-table th {
    background-color: #f8fafc;
    font-weight: 600;
    color: #1e293b;
}

.syllabus-table tr:nth-child(even) {
    background-color: #f8fafc;
}

.syllabus-table tr:hover {
    background-color: #f1f5f9;
}

/* Table Styling */
.syllabus-table {
    width: 100%;
    border-collapse: collapse;
    margin: 1rem 0;
}

.syllabus-table th, .syllabus-table td {
    padding: 1rem;
    border: 1px solid var(--gray-200);
    text-align: left;
}

.syllabus-table th {
    background-color: var(--gray-100);
    font-weight: bold;
    color: var(--primary);
}

.syllabus-table tr:nth-child(even) {
    background-color: var(--gray-100);
}

/* Contact Page Styles */
.contact-info-section {
    background: var(--white);
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    margin-bottom: 2rem;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.info-item i {
    font-size: 1.5rem;
    color: var(--primary);
    width: 30px;
    text-align: center;
}

.info-item p {
    margin: 0;
    font-size: 1.1rem;
    color: var(--text-dark);
}

/* Contact Form */
.contact-form-section {
    background: var(--white);
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    margin-bottom: 2rem;
}

.contact-form {
    display: grid;
    gap: 1.5rem;
    max-width: 800px;
    margin: 0 auto;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-weight: 500;
    color: var(--text-dark);
}

.form-group input,
.form-group textarea {
    padding: 0.8rem;
    border: 1px solid var(--gray-200);
    border-radius: 4px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--primary-light);
    outline: none;
}

.submit-btn {
    background-color: var(--primary);
    color: var(--white);
    border: none;
    padding: 1rem 2rem;
    border-radius: 4px;
    font-size: 1.1rem;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.3s ease;
    justify-self: start;
}

.submit-btn:hover {
    background-color: var(--primary-dark);
}

/* Social Media Section */
.social-media-section {
    background: var(--white);
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    margin-bottom: 2rem;
}

.social-grid-2rows {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(2, 1fr);
    gap: 1rem;
    margin-top: 1.5rem;
}

.social-link {
    display: flex;
    align-items: center;
    padding: 1rem 1.5rem;
    border-radius: 8px;
    color: var(--white);
    text-decoration: none;
    transition: all 0.3s ease;
    opacity: 1;
    visibility: visible;
}

.social-link:hover {
    transform: translateY(-3px);
    opacity: 0.9;
}

.social-link i {
    font-size: 1.5rem;
    margin-right: 1rem;
}

.social-link span {
    font-weight: 500;
}

/* Social Media Colors */
.facebook { background: #1877f2; }
.instagram { background: linear-gradient(45deg, #405DE6, #5851DB, #833AB4, #C13584, #E1306C, #FD1D1D); }
.twitter { background: #1da1f2; }
.youtube { background: #ff0000; }
.tiktok { background: #000000; }
.threads { background: #000000; }
.telegram { background: #0088cc; }
.linkedin { background: #0077b5; }
.pinterest { background: #e60023; }
.snapchat { background: #fffc00; color: #000000; }

@media (max-width: 768px) {
    .social-grid-2rows {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: repeat(4, 1fr);
        gap: 0.8rem;
    }
}

/* Responsive Design */
@media (max-width: 1200px) {
    .container {
        width: 95%;
        padding: 0 1rem;
    }
    
    .grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    body {
        font-size: 16px;
    }

    .container {
        width: 100%;
        padding: 0 1rem;
    }

    .grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .hero-content {
        text-align: center;
        padding: 2rem 1rem;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .section-title {
        font-size: 1.75rem;
    }

    .reports-list, .download-list {
        padding: 0.5rem;
    }

    .report-item, .download-item {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
        padding: 1rem;
    }

    .download-btn {
        width: 100%;
        justify-content: center;
    }

    table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }

    .footer {
        padding: 2rem 1rem;
    }

    .social-links {
        flex-wrap: wrap;
        justify-content: center;
        gap: 1rem;
    }
}

@media (max-width: 480px) {
    body {
        font-size: 14px;
    }

    .hero-title {
        font-size: 1.75rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .section-title {
        font-size: 1.5rem;
    }

    .navbar {
        padding: 0.75rem;
    }

    .navbar .logo {
        font-size: 1.25rem;
    }

    .navbar .logo img {
        height: 32px;
    }

    .mobile-menu-btn {
        width: 24px;
        height: 18px;
    }

    .social-link {
        width: 35px;
        height: 35px;
        font-size: 1.25rem;
    }
}

/* Ensure proper touch targets on mobile */
@media (hover: none) and (pointer: coarse) {
    .nav-links a,
    .download-btn,
    .social-link,
    button {
        min-height: 44px;
        min-width: 44px;
        padding: 12px;
    }

    .mobile-menu-btn {
        padding: 8px;
    }
}

/* Print styles */
@media print {
    .navbar,
    .footer,
    .download-btn,
    .mobile-menu-btn {
        display: none;
    }

    body {
        background: white;
        color: black;
        margin: 0;
        padding: 0;
    }

    .container {
        width: 100%;
        margin: 0;
        padding: 0;
    }

    a {
        text-decoration: none;
        color: black;
    }
}

/* Info Sections */
.info-sections {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    max-width: 1200px;
    margin: 3rem auto 0;
    padding: 0 2rem;
}

.updates-section,
.resources-section {
    background: var(--white);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    border: 1px solid var(--gray-200);
}

.updates-section h3,
.resources-section h3 {
    color: var(--primary);
    font-size: 1.5rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--primary-light);
}

.updates-section p,
.resources-section p {
    color: var(--text-light);
    margin: 0;
    line-height: 1.6;
}

/* Quick Links */
.quick-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 2rem;
}

.quick-link-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    padding: 1.5rem;
    background: var(--white);
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    border: 1px solid var(--gray-200);
    transition: all 0.3s ease;
    width: 200px;
}

.quick-link-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
    border-color: var(--primary-light);
}

.quick-link-item i {
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 1rem;
}

.quick-link-item span {
    color: #000000;
    font-weight: 500;
    text-align: center;
}

@media (max-width: 768px) {
    .info-sections {
        grid-template-columns: 1fr;
        padding: 0 1rem;
    }
    
    .quick-links {
        gap: 1rem;
        padding: 0 1rem;
    }
    
    .quick-link-item {
        width: calc(50% - 1rem);
        padding: 1rem;
    }
    
    .quick-link-item i {
        font-size: 1.5rem;
    }
}

/* Contact Section Headings */
.social-media-section h2,
.contact-info-section h2,
.contact-form-section h2 {
    color: #000000;
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    text-align: center;
}

.social-media-section h2 i,
.contact-info-section h2 i,
.contact-form-section h2 i {
    color: var(--hero-gradient-1);
    transition: color 0.3s ease;
}

.social-media-section h2:hover i,
.contact-info-section h2:hover i,
.contact-form-section h2:hover i {
    color: var(--hero-gradient-2);
}

/* Syllabus Links Text Colors */
.syllabus-links a,
.syllabus-grid a {
    color: var(--hero-text-dark);
    transition: color 0.3s ease;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    border-radius: 8px;
    background: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.syllabus-links a:hover,
.syllabus-grid a:hover {
    color: var(--hero-gradient-1);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.syllabus-links i,
.syllabus-grid i {
    color: var(--hero-gradient-1);
    transition: color 0.3s ease;
    font-size: 1.5rem;
}

.syllabus-links a:hover i,
.syllabus-grid a:hover i {
    color: var(--hero-gradient-2);
}

.syllabus-links h2,
.syllabus-grid h2 {
    color: var(--hero-text-dark);
    margin: 0;
    font-size: 1.2rem;
    font-weight: 500;
    transition: color 0.3s ease;
}

.syllabus-links a:hover h2,
.syllabus-grid a:hover h2 {
    color: var(--hero-gradient-1);
}

/* Make sure these styles also apply to specific syllabus links */
.css-syllabus-link,
.pms-punjab-link,
.cce-sindh-link,
.pms-kpk-link,
.pcs-balochistan-link,
.cce-gb-link,
.pcs-ajk-link {
    color: var(--hero-text-dark);
    transition: color 0.3s ease;
}

.css-syllabus-link:hover,
.pms-punjab-link:hover,
.cce-sindh-link:hover,
.pms-kpk-link:hover,
.pcs-balochistan-link:hover,
.cce-gb-link:hover,
.pcs-ajk-link:hover {
    color: var(--hero-gradient-1);
}

.css-syllabus-link i,
.pms-punjab-link i,
.cce-sindh-link i,
.pms-kpk-link i,
.pcs-balochistan-link i,
.cce-gb-link i,
.pcs-ajk-link i {
    color: var(--hero-gradient-1);
    transition: color 0.3s ease;
}

.css-syllabus-link:hover i,
.pms-punjab-link:hover i,
.cce-sindh-link:hover i,
.pms-kpk-link:hover i,
.pcs-balochistan-link:hover i,
.cce-gb-link:hover i,
.pcs-ajk-link:hover i {
    color: var(--hero-gradient-2);
}

/* PMS/PCS Region Links */
.pms-punjab,
.pms-sindh,
.pms-kpk,
.pms-balochistan,
.pcs-ajk,
.pms-gb {
    color: var(--hero-text-dark);
    background: linear-gradient(135deg, var(--hero-gradient-1), var(--hero-gradient-2));
    -webkit-background-clip: text;
    background-clip: text;
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    transition: transform 0.3s ease;
    display: inline-block;
}

.pms-punjab:hover,
.pms-sindh:hover,
.pms-kpk:hover,
.pms-balochistan:hover,
.pcs-ajk:hover,
.pms-gb:hover {
    transform: translateY(-2px);
}

.pms-punjab i,
.pms-sindh i,
.pms-kpk i,
.pms-balochistan i,
.pcs-ajk i,
.pms-gb i {
    color: var(--hero-gradient-1);
    transition: color 0.3s ease;
    margin-right: 0.5rem;
}

.pms-punjab:hover i,
.pms-sindh:hover i,
.pms-kpk:hover i,
.pms-balochistan:hover i,
.pcs-ajk:hover i,
.pms-gb:hover i {
    color: var(--hero-gradient-2);
}

/* Remove any gradient or special effects */
.pms-card h2,
.syllabus-card h2,
.download-card h2 {
    background: none !important;
    -webkit-background-clip: unset !important;
    background-clip: unset !important;
    background-image: none !important;
    text-shadow: none !important;
    transition: none !important;
}

.pms-card:hover h2,
.syllabus-card:hover h2,
.download-card:hover h2 {
    color: #000000 !important;
    transform: none !important;
}

/* Force icon colors */
.quick-link-item i,
.service-card i,
.feature-card i {
    color: var(--hero-gradient-1) !important;
    transition: color 0.3s ease !important;
}

.quick-link-item:hover i,
.service-card:hover i,
.feature-card:hover i {
    color: var(--hero-gradient-2) !important;
}

.quick-link-item i,
.service-card i,
.feature-card i {
    background: none !important;
    -webkit-background-clip: unset !important;
    background-clip: unset !important;
    background-image: none !important;
}

/* Icon colors only */
.quick-link-item i,
.service-card i,
.feature-card i {
    color: var(--hero-gradient-1) !important;
    transition: color 0.3s ease;
}

.quick-link-item:hover i,
.service-card:hover i,
.feature-card:hover i {
    color: var(--hero-gradient-2) !important;
}

/* PMS Punjab Content Styling */
.pms-content {
    color: #000000;
}

.pms-content h1,
.pms-content h2,
.pms-content h3 {
    color: #000000;
}

.pms-content ul {
    color: #000000;
    margin-left: 20px;
    margin-bottom: 1rem;
}

.pms-content p {
    color: #000000;
    margin-bottom: 1rem;
}

.pms-content section {
    margin-bottom: 2rem;
}

.pms-content .note {
    color: #000000;
    font-style: italic;
}

.pms-content .important {
    color: #000000;
    font-weight: bold;
}

/* Syllabus Section Styles */
#syllabus-section {
    background-color: var(--gray-100);
    padding: 2rem;
    border-radius: 12px;
    margin: 2rem 0;
}

#syllabus-section h2 {
    text-align: center;
    margin-bottom: 1.5rem;
    color: var(--text-dark);
}

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

.syllabus-btn {
    background-color: var(--primary);
    color: var(--white);
    border: none;
    padding: 1.2rem 1.5rem;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    text-align: center;
    line-height: 1.3;
    min-height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    word-wrap: break-word;
}

.syllabus-btn:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.syllabus-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Advertisement Spaces */
.ad-container {
    width: 100%;
    margin: 2rem 0;
    padding: 1rem;
    background: #f8f9fa;
    border: 2px dashed #dee2e6;
    border-radius: 8px;
    text-align: center;
    min-height: 250px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6c757d;
    font-size: 0.9rem;
}

.ad-sidebar {
    position: sticky;
    top: 2rem;
    width: 300px;
    margin-left: 2rem;
}

.ad-container.horizontal {
    min-height: 100px;
}

.ad-container.mobile {
    display: none;
}

@media (max-width: 1200px) {
    .ad-sidebar {
        display: none;
    }
    .ad-container.mobile {
        display: flex;
    }
}

/* Flex container for main content and sidebar */
.content-with-sidebar {
    display: flex;
    align-items: flex-start;
    gap: 2rem;
}

.main-content {
    flex: 1;
    min-width: 0; /* Prevent flex item from overflowing */
}

/* Touch-friendly buttons and links */
.download-btn,
.nav-links a,
.social-link,
button {
    padding: 0.75rem 1rem;
    min-height: 44px;
    min-width: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    touch-action: manipulation;
}

/* Improved Grid System */
.grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    padding: 1rem 0;
}

/* Responsive Typography */
html {
    font-size: 16px;
}

h1 { font-size: 1.75rem; }
h2 { font-size: 1.5rem; }
h3 { font-size: 1.25rem; }
p { font-size: 1rem; }

/* Tablet Breakpoint */
@media (min-width: 768px) {
    .nav-links {
        position: static;
        display: flex;
        height: auto;
        flex-direction: row;
        background: none;
        backdrop-filter: none;
    }

    .mobile-menu-btn {
        display: none;
    }

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

    h1 { font-size: 2.25rem; }
    h2 { font-size: 1.75rem; }
    h3 { font-size: 1.5rem; }

    .container {
        padding: 0 2rem;
    }
}

/* Desktop Breakpoint */
@media (min-width: 1024px) {
    .grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 2rem;
    }

    h1 { font-size: 2.5rem; }
    h2 { font-size: 2rem; }
    h3 { font-size: 1.75rem; }

    .container {
        padding: 0 3rem;
    }
}

/* Large Desktop Breakpoint */
@media (min-width: 1200px) {
    .container {
        max-width: var(--container-max-width);
        margin: 0 auto;
    }
}

/* Prevent content shift when scrollbar appears */
html {
    scrollbar-gutter: stable;
}

/* Ensure proper spacing on mobile */
.section {
    padding: 2rem 0;
}

/* Fix for iOS Safari 100vh issue */
@supports (-webkit-touch-callout: none) {
    .nav-links {
        height: -webkit-fill-available;
    }
}

/* Prevent text size adjustment on orientation change */
html {
    -webkit-text-size-adjust: 100%;
}

/* Smooth scrolling for anchor links */
html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px; /* Account for fixed header */
}

/* Ensure proper touch targets for all interactive elements */
a, button, input, select, textarea {
    touch-action: manipulation;
}

/* Tables Responsive */
.table-container {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin: 1rem 0;
}

table {
    min-width: 100%;
    border-collapse: collapse;
}

body.menu-open {
    overflow: hidden;
    position: fixed;
    width: 100%;
}

/* Tablet and Desktop Navigation */
@media (min-width: 768px) {
    .nav-links {
        position: static;
        display: flex;
        height: auto;
        flex-direction: row;
        background: none;
        backdrop-filter: none;
    }

    .nav-links li {
        opacity: 1;
        transform: none;
        animation: none !important;
    }

    .mobile-menu-btn {
        display: none;
    }

    body.menu-open {
        overflow: auto;
        position: static;
    }
}

/* Mobile-specific styles */
@media (max-width: 768px) {
    :root {
        --container-padding: 1rem;
    }

    /* Social Media Grid Mobile Styles */
    .social-grid-2rows {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 1rem;
        padding: 1rem;
    }

    .social-grid-2rows .social-link {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 100%;
        aspect-ratio: 1;
        border-radius: 12px;
        padding: 0;
    }

    .social-grid-2rows .social-link i,
    .social-grid-2rows .social-link .threads-icon {
        font-size: 1.5rem;
        width: 1.5rem;
        height: 1.5rem;
    }

    .social-grid-2rows .social-link span {
        display: none;
    }
    
    .container {
        padding: 0.5rem;
    }
    
    .content-sections {
        padding: 0.5rem;
    }
    
    section {
        margin-bottom: 1.5rem;
        padding: 0.75rem;
        background: var(--white);
        border-radius: 0.5rem;
        box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    }
    
    h1 {
        font-size: 1.75rem !important;
        line-height: 1.3;
        margin-bottom: 1rem;
    }
    
    h2 {
        font-size: 1.5rem !important;
        line-height: 1.3;
        margin-bottom: 0.75rem;
    }
    
    h3 {
        font-size: 1.25rem !important;
        line-height: 1.4;
        margin-bottom: 0.5rem;
    }
    
    p {
        font-size: 1rem;
        line-height: 1.6;
        margin-bottom: 1rem;
    }
    
    ul, ol {
        padding-left: 1.25rem;
        margin-bottom: 1rem;
    }
    
    li {
        margin-bottom: 0.5rem;
        line-height: 1.5;
    }
    
    /* Improve table readability on mobile */
    table {
        display: block;
        width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    td, th {
        padding: 0.75rem;
        font-size: 0.875rem;
    }
    
    /* Adjust images for mobile */
    img {
        max-width: 100%;
        height: auto;
        margin: 1rem 0;
    }
    
    /* Mobile navigation adjustments */
    .navbar {
        padding: 0.5rem var(--container-padding);
    }
    
    .navbar .logo {
        font-size: 1.125rem;
    }
    
    .navbar .logo img {
        height: 28px;
    }
    
    .nav-links {
        background: var(--white);
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    }
    
    .nav-links a {
        padding: 0.875rem;
        font-size: 1rem;
    }
}

/* Ensure proper spacing between sections */
section + section {
    margin-top: 2rem;
}

/* Improve readability of code blocks and pre elements */
pre, code {
    max-width: 100%;
    overflow-x: auto;
    white-space: pre-wrap;
    word-wrap: break-word;
    background: var(--gray-100);
    padding: 1rem;
    border-radius: 0.375rem;
    font-size: 0.875rem;
    line-height: 1.5;
}