* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    width: 100%;
    height: 100%;
}


:root {
    --primary: #1a365d;
    --secondary: #2d3748;
    --accent: #c53030;
    --light: #f7fafc;
    --text: #2d3748;
    --text-light: #718096;
    --border: #e2e8f0;
    --shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    --transition: all 0.3s ease;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: var(--text);
    background-color: white;
    font-weight: 400;
}

h1, h2, h3, h4, h5 {
    font-family: 'Merriweather', serif;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 0.75rem;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

section {
  padding: 30px 0;
}

section:empty {
  display: none;
}


/* Professional Navigation */
.simple-nav {
    background-color: white;
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 100;
    padding: 15px 0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 22px;
    font-weight: 900;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 8px;
    letter-spacing: -0.5px;
}

.logo i {
    color: var(--accent);
}

nav ul {
    display: flex;
    list-style: none;
    gap: 25px;
}

nav a {
    text-decoration: none;
    color: var(--text);
    font-weight: 500;
    font-size: 15px;
    transition: var(--transition);
    position: relative;
    padding: 5px 0;
}

nav a:hover {
    color: var(--accent);
}

nav a.active {
    color: var(--accent);
    font-weight: 600;
}

nav a.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--accent);
}

/* Hero Section - Professional Layout */
.hero {
    padding: 50px 0 70px;
    background-color: var(--light);
    border-bottom: 1px solid var(--border);
}

.hero-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 60px;
}

.hero-text {
    flex: 1;
}

.hero-image {
    flex: 1;
    position: relative;
}

.hero h1 {
    font-size: 38px;
    line-height: 1.2;
    margin-bottom: 15px;
    letter-spacing: -0.5px;
}

.hero h1 span {
    color: var(--accent);
}

.hero-subtitle {
    font-size: 18px;
    color: var(--text-light);
    margin-bottom: 20px;
    font-weight: 500;
    letter-spacing: 0.5px;
}

.hero p {
    font-size: 16px;
    color: var(--text);
    margin-bottom: 25px;
    line-height: 1.7;
}

.hero-divider {
    height: 1px;
    background-color: var(--border);
    margin: 30px 0;
    width: 100%;
}

.nav-links {
    display: flex;
    gap: 25px;
    margin-top: 25px;
    flex-wrap: wrap;
}

.nav-link {
    text-decoration: none;
    color: var(--accent);
    font-weight: 600;
    font-size: 15px;
    transition: var(--transition);
    position: relative;
    padding-bottom: 3px;
}

.nav-link:hover {
    color: var(--primary);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background-color: var(--accent);
    transition: var(--transition);
}

.nav-link:hover::after {
    width: 100%;
}

.profile-img {
    width: 100%;
    max-width: 480px;
    border-radius: 6px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    transition: var(--transition);
}

.profile-img:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
}

.img-caption {
    text-align: center;
    margin-top: 10px;
    font-size: 14px;
    color: var(--text-light);
    font-style: italic;
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
}

.section-title h2 {
    font-size: 32px;
    position: relative;
    display: inline-block;
    padding-bottom: 12px;
}

.section-title h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background-color: var(--accent);
}

.section-title p {
    max-width: 700px;
    margin: 15px auto 0;
    color: var(--text-light);
    font-size: 16px;
}

/* Wikipedia-style Content Layout */
.wikipedia-content {
    max-width: 900px;
    margin: 0 auto;
}

.content-section {
    margin-bottom: 50px;
}

.content-section h2 {
    font-size: 28px;
    border-bottom: 2px solid var(--border);
    padding-bottom: 10px;
    margin-bottom: 25px;
}

.content-section h3 {
    font-size: 22px;
    margin: 25px 0 15px;
    color: var(--secondary);
}

.content-section h4 {
    font-size: 18px;
    margin: 20px 0 10px;
    color: var(--secondary);
}

.content-section p {
    margin-bottom: 15px;
    line-height: 1.7;
}

.content-section ul, .content-section ol {
    margin: 15px 0 15px 30px;
}

.content-section li {
    margin-bottom: 8px;
    line-height: 1.6;
}

.info-box {
    background-color: var(--light);
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 20px;
    max-width: 300px;
    margin: 0 auto;
    text-align: left;
}


.info-box h4 {
    text-align: center;
    margin-bottom: 15px;
    color: var(--primary);
}

.info-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid var(--border);
}

.info-label {
    font-weight: 600;
    color: var(--text);
}

.info-value {
    color: var(--text);
    text-align: right;
}

.citation {
    font-size: 13px;
    color: var(--text-light);
    margin-top: 30px;
    padding-top: 15px;
    border-top: 1px solid var(--border);
}

.citation sup {
    color: var(--accent);
    font-weight: 600;
}

/* Table styling */
.content-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    background-color: white;
    border: 1px solid var(--border);
}

.content-table th {
    background-color: var(--light);
    font-weight: 600;
    text-align: left;
    padding: 12px 15px;
    border-bottom: 2px solid var(--border);
}

.content-table td {
    padding: 10px 15px;
    border-bottom: 1px solid var(--border);
}

.content-table tr:hover {
    background-color: rgba(197, 48, 48, 0.05);
}

/* About Section */
.about {
    background-color: white;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.about-text h3 {
    font-size: 24px;
    margin-bottom: 15px;
}

.about-text p {
    margin-bottom: 20px;
    color: var(--text);
    line-height: 1.7;
}

.about-images {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 30px;
}

/* About Image Container - Perfect Compact Version */
.about-img-container {
    position: relative;
    overflow: hidden;
    border-radius: 6px;
    border: 1px solid var(--border);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    transition: var(--transition);
    background-color: white;
    height: 180px; /* Compact height */
    width: 100%;
    margin: 0 auto;
}

.about-img-container:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
    border-color: var(--accent);
}

.about-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background-color: #f9fafb; /* Light neutral background */
    padding: 8px;
    transition: all 0.4s ease;
    display: block;
}

.about-img-container:hover .about-img {
    transform: scale(1.02);
}

.img-border {
    position: absolute;
    top: 6px;
    left: 6px;
    right: 6px;
    bottom: 6px;
    border: 1px solid rgba(197, 48, 48, 0.15);
    border-radius: 4px;
    pointer-events: none;
    z-index: 1;
    transition: var(--transition);
}

.about-img-container:hover .img-border {
    border-color: rgba(197, 48, 48, 0.3);
}

/* Compact caption that doesn't cover image */
.about-img-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    color: var(--text);
    padding: 6px 8px;
    font-size: 11px;
    font-weight: 600;
    text-align: center;
    border-top: 1px solid var(--border);
    transform: translateY(100%);
    transition: var(--transition);
    opacity: 0;
    z-index: 2;
}

.about-img-container:hover .about-img-caption {
    transform: translateY(0);
    opacity: 1;
}

/* Alternative: Simple always-visible caption below image */
.img-label {
    position: absolute;
    bottom: -25px;
    left: 0;
    right: 0;
    font-size: 12px;
    color: var(--text-light);
    text-align: center;
    padding-top: 5px;
    font-weight: 500;
}

/* About images grid layout - more compact */
.about-images {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin: 20px 0 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* Image grid with 4 items - better spacing */
.about-images.grid-4 {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

/* For better image loading state */
.about-img.loading {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .about-img-container {
        height: 160px; /* Slightly smaller on mobile */
    }
    
    .about-images {
        gap: 12px;
    }
    
    .about-images.grid-4 {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
}

@media (max-width: 480px) {
    .about-img-container {
        height: 140px; /* Very compact on small screens */
    }
    
    .about-images {
        grid-template-columns: 1fr;
        max-width: 300px;
    }
    
    .about-images.grid-4 {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }
}

/* Ensure images are clear and crisp */
.about-img {
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
    -ms-interpolation-mode: nearest-neighbor;
}

/* Optional: Add a subtle focus effect for accessibility */
.about-img-container:focus-within {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

/* Inventions Section */
.inventions {
    background-color: var(--light);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

/* Container */
.inventions-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
    align-items: stretch;
}

/* Card */
.invention-card {
    background-color: #fff;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.invention-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
}

/* Image */
.invention-img {
    width: 100%;
    height: 220px;
    object-fit: contain;
    background-color: #f4f4f4;
    display: block;
    margin: 0 auto;
}

/* Content */
.invention-content {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.invention-content h3 {
    font-size: 18px;
    margin-bottom: 10px;
    color: var(--primary);
}

.invention-content p {
    color: var(--text);
    margin-bottom: 15px;
    font-size: 14px;
    line-height: 1.6;
    flex: 1;
}

/* Year Badge */
.invention-year {
    display: inline-block;
    background-color: var(--light);
    color: var(--accent);
    font-size: 13px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 20px;
    align-self: flex-start;
}

/* Vehicle Section */
.vehicle-section {
    background-color: white;
}

.vehicle-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.vehicle-img-container {
    text-align: center;
}

.vehicle-main-img {
    width: 100%;
    max-width: 450px;
    border-radius: 6px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
}

.vehicle-description h3 {
    font-size: 24px;
    margin-bottom: 15px;
}

.vehicle-description p {
    color: var(--text);
    margin-bottom: 15px;
    line-height: 1.7;
}

.vehicle-specs {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin-top: 20px;
}

.spec-item {
    background-color: var(--light);
    padding: 15px;
    border-radius: 6px;
    border: 1px solid var(--border);
}

.spec-title {
    font-weight: 600;
    color: var(--accent);
    font-size: 14px;
    margin-bottom: 5px;
}

.spec-value {
    font-size: 14px;
    color: var(--text);
}

/* Quotes Section - Compact */
.quotes {
    background-color: var(--light);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    position: relative;
    overflow: hidden;
    padding: 35px 0 18px;  /* small clean gap only */
}


.quotes-container {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
}

.quotes-slider {
    position: relative;
    overflow: hidden;
    height: 220px;
}

.quote-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.6s ease;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.quote-slide.active {
    opacity: 1;
}

.quote-card {
    background-color: white;
    padding: 30px;
    border-radius: 6px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    max-width: 700px;
    margin: 0 auto;
}

.quote-text {
    font-size: 20px;
    font-style: italic;
    color: var(--text);
    margin-bottom: 15px;
    line-height: 1.6;
    position: relative;
    padding-left: 25px;
}

.quote-text::before {
    content: '"';
    font-size: 50px;
    color: var(--accent);
    opacity: 0.3;
    position: absolute;
    left: -5px;
    top: -15px;
}

.quote-author {
    font-weight: 600;
    color: var(--accent);
    font-size: 16px;
    text-align: right;
}

.slider-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    margin-top: 25px;
}

.slider-arrow {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: white;
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    font-size: 16px;
    color: var(--accent);
}

.slider-arrow:hover {
    background-color: var(--accent);
    color: white;
    transform: scale(1.05);
}

/* ===== FINAL QUOTE SLIDER DOT DESIGN ===== */

/* Videos Section */
.videos {
    background-color: var(--light);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.videos-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

.video-card {
    background-color: white;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    transition: var(--transition);
}

.video-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
}

.video-iframe-container {
    width: 100%;
    height: 200px;
    position: relative;
    overflow: hidden;
}

.video-iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.video-content {
    padding: 20px;
}

.video-content h3 {
    font-size: 18px;
    margin-bottom: 10px;
}

.video-content p {
    color: var(--text-light);
    margin-bottom: 15px;
    font-size: 14px;
    line-height: 1.6;
}

.video-meta {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    color: var(--text-light);
}

/* Compact Timeline */
.timeline {
    background-color: white;
}

.timeline-container {
    max-width: 900px;
    margin: 0 auto;
    position: relative;
}

.timeline-container::before {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    top: 0;
    bottom: 0;
    width: 2px;
    background-color: var(--border);
}

.timeline-item {
    display: flex;
    margin-bottom: 40px;
    position: relative;
    width: 100%;
}

.timeline-item:nth-child(odd) {
    flex-direction: row;
}

.timeline-item:nth-child(even) {
    flex-direction: row-reverse;
}

.timeline-date {
    width: 100px;
    flex-shrink: 0;
    font-weight: 700;
    color: var(--accent);
    font-size: 20px;
    text-align: center;
    padding-top: 10px;
    position: relative;
    z-index: 2;
}

.timeline-dot {
    width: 16px;
    height: 16px;
    background-color: white;
    border: 3px solid var(--accent);
    border-radius: 50%;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    top: 12px;
    z-index: 2;
}

.timeline-content {
    background-color: white;
    padding: 20px;
    border-radius: 6px;
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    width: calc(50% - 70px);
    margin: 0 15px;
    position: relative;
}

.timeline-content h3 {
    font-size: 18px;
    margin-bottom: 10px;
    color: var(--primary);
}

.timeline-content p {
    color: var(--text);
    line-height: 1.6;
    font-size: 15px;
}

.timeline-img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: 4px;
    margin-top: 12px;
    border: 1px solid var(--border);
}

/* Fixed Footer - Centered and Compact */
footer {
    background-color: var(--primary);
    color: white;
     padding: 22px 0 12px;
    text-align: center;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    max-width: 800px;
    margin: 0 auto;
}

.footer-left {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

.footer-logo {
    font-size: 24px;
    font-weight: 900;
    color: white;
    margin-bottom: 5px;
}

.footer-tagline {
    color: #cbd5e0;
    font-size: 14px;
    margin-bottom: 8px;
    text-align: center;
}

.footer-tagline span {
    color: #fc8181;
}

.footer-nav {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 5px;
    width: 100%;
}

.footer-nav a {
    color: #cbd5e0;
    text-decoration: none;
    font-size: 14px;
    transition: var(--transition);
    padding: 0 5px;
}

.footer-nav a:hover {
    color: white;
    transform: translateY(-2px);
}

.footer-map {
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 6px;
    padding: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    width: 100%;
    max-width: 500px;
}

.footer-map h4 {
    color: white;
    margin-bottom: 10px;
    font-size: 16px;
    font-weight: 600;
    text-align: center;
}

.map-container {
    width: 100%;
    height: 150px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    overflow: hidden;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.map-address {
    margin-top: 10px;
    font-size: 12px;
    color: #cbd5e0;
    line-height: 1.5;
    text-align: center;
}

.copyright {
    text-align: center;
    padding-top: 8px;
    color: #a0aec0;
    font-size: 12px;
    width: 100%;
}

/* Remove gaps and make compact */
.footer-nav,
.footer-tagline,
.copyright {
    margin-left: auto;
    margin-right: auto;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    footer {
        padding: 30px 0 15px;
    }
    
    .footer-content {
        gap: 20px;
    }
    
    .footer-nav {
        gap: 10px;
    }
    
    .footer-nav a {
        font-size: 13px;
    }
    
    .map-container {
        height: 120px;
    }
}

@media (max-width: 480px) {
    .footer-nav {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 8px;
        justify-items: center;
    }
    
    .footer-nav a {
        padding: 3px 0;
    }
}

/* Responsive Design */
@media (max-width: 992px) {
    .hero-content {
        flex-direction: column;
        text-align: center;
    }
    
    .hero h1 {
        font-size: 32px;
    }
    
    .nav-links {
        justify-content: center;
    }
    
    .about-content, .vehicle-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .nav-container {
        flex-direction: column;
        gap: 15px;
    }
    
    nav ul {
        flex-wrap: wrap;
        justify-content: center;
        gap: 20px;
    }
    
    .timeline-container::before {
        left: 30px;
    }
    
    .timeline-item {
        flex-direction: row !important;
        margin-bottom: 30px;
    }
    
    .timeline-date {
        width: 70px;
        text-align: left;
        padding-left: 10px;
    }
    
    .timeline-dot {
        left: 30px;
    }
    
    .timeline-content {
        width: calc(100% - 90px);
        margin-left: 30px;
    }
    
    .videos-container {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .footer-map {
        order: -1;
    }
    
    .info-box {
        float: none;
        width: 100%;
        margin: 20px 0;
    }
}

@media (max-width: 768px) {
    section {
        padding: 50px 0;
    }
    
    .hero {
        padding: 80px 0 50px;
    }
    
    .section-title h2 {
        font-size: 28px;
    }
    
    .quotes-slider {
        height: 200px;
    }
    
    .quote-card {
        padding: 20px;
    }
    
    .quote-text {
        font-size: 18px;
    }
    
    .about-images {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .about-img {
        height: 180px;
    }
    
    .inventions-container {
        grid-template-columns: 1fr;
    }
    
    .videos-container {
        grid-template-columns: 1fr;
    }
    
    .vehicle-specs {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 28px;
    }
    
    .hero-subtitle {
        font-size: 16px;
    }
    
    .section-title h2 {
        font-size: 24px;
    }
    
    .timeline-content {
        padding: 15px;
    }
    
    .timeline-img {
        height: 120px;
    }
}

.logo-text {
    font-family: 'Playfair Display', serif;
    font-size: 24px;
    font-weight: 800;
    letter-spacing: 1px;
}

/* Wikipedia style table of contents */
.toc {
    background-color: var(--light);
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 20px;
    margin: 30px 0;
}

.toc-title {
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 15px;
    font-size: 18px;
}

.toc ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.toc li {
    margin-bottom: 8px;
    padding-left: 20px;
    position: relative;
}

.toc li:before {
    content: "•";
    color: var(--accent);
    position: absolute;
    left: 0;
}

.toc a {
    color: var(--text);
    text-decoration: none;
    transition: var(--transition);
}

.toc a:hover {
    color: var(--accent);
    text-decoration: underline;
}

/* Hidden content sections */
.hidden-content {
    display: none;
}

.visible-content {
    display: block;
}

.hero-image {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.img-caption {
    text-align: center;
    font-size: 14px;
    color: #6b7280;
    margin-top: 8px;
}

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin: 40px 0 10px;
}

.page, .next {
    padding: 6px 12px;
    border: 1px solid var(--border);
    border-radius: 4px;
    text-decoration: none;
    font-size: 14px;
    color: var(--text);
    background: white;
    transition: var(--transition);
}

.page:hover, .next:hover {
    background: var(--light);
}

.page.active {
    background: black;
    color: white;
    border-color: black;
}

.dots {
    padding: 6px;
    font-size: 14px;
    color: var(--text-light);
}

.pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin: 40px 0 10px;
}

.page, .next {
    padding: 6px 12px;
    border: 1px solid var(--border);
    border-radius: 4px;
    text-decoration: none;
    font-size: 14px;
    color: var(--text);
    background: white;
}

.page.active {
    background: black;
    color: white;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary:#1a365d;
  --accent:#c53030;
  --text:#2d3748;
  --light:#f7fafc;
  --border:#e2e8f0;
}

body {
  font-family: Inter, sans-serif;
  color: var(--text);
  line-height: 1.6;
  background: white;
}

.container {
  max-width:1200px;
  margin:auto;
  padding:0 20px;
}

/* NAV */
.simple-nav {
  border-bottom:1px solid var(--border);
  background:white;
  padding:15px 0;
}

.nav-container {
  display:flex;
  justify-content:space-between;
  align-items:center;
}

nav ul {
  list-style:none;
  display:flex;
  gap:20px;
}

nav a {
  text-decoration:none;
  color:var(--text);
  position:relative;
  padding:5px 0;
}

nav a.active {
  color:var(--accent);
}

nav a.active::after {
  content:'';
  position:absolute;
  bottom:0;
  left:50%;
  transform:translateX(-50%);
  width:22px;
  height:2px;
  background:var(--accent);
}

/* HERO */
.hero {
  background:var(--light);
  padding:60px 0;
}

.hero-content {
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:50px;
  align-items:center;
}

.hero-image {
  display:flex;
  flex-direction:column;
  align-items:center;
}

.profile-img {
  max-width:450px;
  width:100%;
  border:1px solid var(--border);
}

.img-caption {
  margin-top:8px;
  font-size:14px;
  color:#6b7280;
  text-align:center;
}

/* QUICK FACTS */
.info-box {
  max-width:300px;
  border:1px solid var(--border);
  background:white;
  padding:15px;
  margin:20px auto;
}

/* CONTENT */
.content-section {
  max-width:900px;
  margin:50px auto;
}

.content-section h2 {
  border-bottom:2px solid var(--border);
  margin-bottom:15px;
  padding-bottom:5px;
}

/* QUOTES SLIDER */
.slider-controls{
    display:flex;
    justify-content:center;
    align-items:center;
    gap:22px;
    margin-top:22px;
}


.slider-arrow {
  border:1px solid var(--border);
  padding:8px 12px;
  cursor:pointer;
}

/* PAGINATION */
.pagination {
  display:flex;
  justify-content:center;
  gap:8px;
  margin:40px 0;
}

.page, .next {
  border:1px solid var(--border);
  padding:6px 12px;
  text-decoration:none;
  color:var(--text);
}

.page.active {
  background:black;
  color:white;
}

/* FOOTER */
footer {
  background:var(--primary);
  color:white;
  padding:40px 0;
  margin-top:12px;   /* clean soft gap */
}


.map-container iframe {
  width:100%;
  height:200px;
  border:0;
}

/* RESPONSIVE */
@media(max-width:768px){
  .hero-content {
    grid-template-columns:1fr;
    text-align:center;
  }
}

/* External imports */
@import url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css');
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Merriweather:wght@400;700;900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@600;700;800;900&display=swap');

section:empty,
.content-section:empty,
.wikipedia-content:empty,
.hero:empty {
    display: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

/* remove extra margin created by first heading */
.content-section h2:first-child {
    margin-top: 0 !important;
}

/* fix pagination pushing page height */
.pagination {
    margin-top: 10px !important;
    margin-bottom: 10px !important;
}

/* Early-Life page spacing fix */
.about .content-section {
    margin-bottom: 20px !important;
}

.about {
    padding-bottom: 0 !important;
}

.about + .content-section {
    margin-top: 0 !important;
}

/* MAX COMPACT MODE – NO EXTRA GAP */

.container.wikipedia-content {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
}

.content-section {
    margin-top: 2px !important;
    margin-bottom: 4px !important;
}

.content-section h2 {
    margin-top: 0 !important;
    margin-bottom: 2px !important;
}

.content-section p,
.content-section ul,
.content-section ol {
    margin-bottom: 4px !important;
}

.pagination {
    margin-top: 6px !important;
}

/* Fix narrow description width only in Gallery page */
body.gallery-page .content-section {
    max-width: 100%;
    width: 100%;
    margin-top: 40px;
}

body.gallery-page .content-section p {
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.about-img, .invention-img, .profile-img {
    image-rendering: auto;
    filter: none;
}

/* Fix for gallery page background mismatch */
.videos.gallery-background-fix {
    background-color: white !important;
    border-top: none !important;
    border-bottom: none !important;
    padding-top: 30px !important;
}

/* OR simpler: Remove the .videos class from gallery */
body.gallery-page .videos {
    background-color: white;
    border-top: none;
    border-bottom: none;
}

/* Make content section in gallery match other pages */
body.gallery-page .content-section {
    background-color: white;
    padding: 30px 0;
}

/* Remove the special video card styling in gallery */
body.gallery-page .video-card {
    background-color: white;
    border: 1px solid var(--border);
    margin: 20px 0;
}

/* Gallery Page Specific Styles */

/* Gallery Layout */
.gallery-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

.gallery-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.gallery-img-container {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    border: 2px solid var(--border);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: var(--transition);
    width: 100%;
    height: 250px;
    background-color: #f8fafc;
}

.gallery-img-container:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
    border-color: var(--accent);
}

.gallery-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 15px;
    transition: var(--transition);
    background-color: #f8fafc;
}

.gallery-img-container:hover .gallery-img {
    transform: scale(1.03);
}

/* Gallery Caption */
.gallery-caption {
    margin-top: 10px;
    font-size: 14px;
    color: var(--text);
    font-weight: 500;
    text-align: center;
    max-width: 90%;
    line-height: 1.4;
}

/* Banner Image */
.banner-container {
    margin: 40px 0;
    width: 100%;
}

.gallery-img-container.banner {
    height: 300px;
    border-radius: 10px;
    position: relative;
    overflow: hidden;
    border-width: 3px;
}

.banner-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    padding: 0;
}

.banner-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    color: white;
    padding: 30px;
    padding-top: 60px;
}

.banner-overlay h3 {
    color: white;
    font-size: 24px;
    margin-bottom: 10px;
    font-family: 'Merriweather', serif;
}

.banner-overlay p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 16px;
    margin: 0;
}

/* Captions Grid */
.caption-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
    margin-top: 30px;
}

.caption-item {
    background-color: var(--light);
    padding: 20px;
    border-radius: 8px;
    border: 1px solid var(--border);
    transition: var(--transition);
}

.caption-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.caption-item h3 {
    color: var(--primary);
    margin-bottom: 10px;
    font-size: 18px;
}

.caption-item p {
    margin-bottom: 8px;
    font-size: 14px;
    line-height: 1.6;
}

/* Responsive Design */
@media (max-width: 992px) {
    .gallery-row {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .caption-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .gallery-row {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    
    .gallery-img-container {
        height: 220px;
        max-width: 400px;
        margin: 0 auto;
    }
    
    .gallery-img-container.banner {
        height: 250px;
    }
    
    .banner-overlay {
        padding: 20px;
        padding-top: 50px;
    }
    
    .banner-overlay h3 {
        font-size: 20px;
    }
    
    .banner-overlay p {
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .gallery-img-container {
        height: 200px;
    }
    
    .gallery-img-container.banner {
        height: 200px;
    }
    
    .banner-overlay h3 {
        font-size: 18px;
    }
    
    .gallery-caption {
        font-size: 13px;
    }
}

.gallery-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.65), rgba(0,0,0,0.15));
    border-radius: inherit;
}

.museum-map-box {
    display: flex;
    gap: 30px;
    margin-top: 25px;
    background: #f9fbff;
    padding: 20px;
    border-radius: 6px;
    border: 1px solid var(--border);
}

.museum-address {
    flex: 1;
    font-size: 14px;
    color: var(--text);
    line-height: 1.6;
}

.museum-address h3 {
    margin-bottom: 10px;
    color: var(--primary);
}

.museum-map {
    flex: 1;
}

.museum-map iframe {
    width: 100%;
    height: 305px;
    border: 0;
    border-radius: 4px;
}

/* Mobile view */
@media (max-width: 768px) {
    .museum-map-box {
        flex-direction: column;
    }

    .museum-map iframe {
        height: 200px;
    }
}

.section-heading {
    text-align: center;
    font-size: 28px;
    color: var(--primary);
    margin-bottom: 6px;
}

.section-subtitle {
    text-align: center;
    font-size: 15px;
    color: #555;
    margin-bottom: 30px;
}

.section-heading {
    margin-bottom: 18px;   /* gap between title and images */
    position: relative;
}

.section-heading::after {
    content: "";
    display: block;
    width: 120px;
    height: 3px;
    background: var(--accent);
    margin: 10px auto 0;
    border-radius: 2px;
}

@media (max-width: 768px) {
  .mobile-center-fix h2 {
      text-align: center;
      margin-left: auto;
      margin-right: auto;
      width: 90%;
  }

  .mobile-center-fix p {
      text-align: justify;
      margin-left: auto;
      margin-right: auto;
      width: 90%;
  }
}

/* Half-Half Page Layout */
.hero-content {
    display: flex;
    justify-content: space-between;
    gap: 40px;
    align-items: flex-start;
}

.hero-left {
    flex: 2;   /* more space for text */
}

.hero-right {
    flex: 1;   /* smaller facts column */
}


/* Left side styling */
.hero-left h1 {
    margin-top: 0;
    color: #2c5aa0;
    font-size: 2.2em;
    margin-bottom: 10px;
}

.hero-left h1 span {
    color: #333;
}

.hero-subtitle {
    color: #666;
    font-size: 1.1em;
    margin-bottom: 25px;
    font-weight: 500;
}

.hero-left p {
    line-height: 1.6;
    color: #444;
    margin-bottom: 25px;
}

/* Centered Image */
.centered-image {
    text-align: center;
    margin: 25px 0;
}

.hero-center-img {
    max-width: 250px;
    width: 100%;
    height: auto;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.image-caption {
    text-align: justify;
    color: #555;
    max-width: none;        /* remove limit */
    width: 100%;
    margin: 20px 0 25px;   /* align with main text */
    line-height: 1.7;
    padding: 0;
    font-size: 0.95em;
}


/* Right side - Facts Box with Basic Border */
.facts-box {
    background: #f8f9fa;
    padding: 25px;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    height: 100%;
}

.facts-box h3 {
    margin-top: 0;
    color: #2c5aa0;
    padding-bottom: 15px;
    margin-bottom: 20px;
    font-size: 1.5em;
    font-weight: 600;
    border-bottom: 1px solid #e0e0e0;
}

.facts-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.fact-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 12px;
    border-bottom: 1px dashed #e8e8e8;
}

.fact-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.fact-label {
    font-weight: 500;
    color: #333;
    flex: 1;
}

.fact-value {
    color: #2c5aa0;
    text-align: right;
    flex: 1;
    font-weight: 500;
}

/* Responsive Design */
@media (max-width: 992px) {
    .hero-content {
        gap: 30px;
    }
    
    .hero-left h1 {
        font-size: 1.8em;
    }
    
    .hero-center-img {
        max-width: 300px;
    }
}

@media (max-width: 768px) {
    .hero-content {
        flex-direction: column;
        gap: 30px;
    }
    
    .hero-left, .hero-right {
        width: 100%;
    }
    
    .hero-center-img {
        max-width: 280px;
    }
    
    .facts-box {
        max-width: 500px;
        margin: 0 auto;
    }
}
.facts-box h3{
    text-align: center;
}


@media (max-width: 480px) {
    .hero-left h1 {
        font-size: 1.6em;
    }
    
    .hero-center-img {
        max-width: 250px;
    }
    
    .facts-box {
        padding: 20px;
    }
    
    .fact-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
    
    .fact-value {
        text-align: left;
        width: 100%;
    }
}


.top-notice{
    background:#fef3c7;
    color:#92400e;
    text-align:center;
    font-size:13px;
    padding:6px 10px;
    border-bottom:1px solid #fde68a;
}

.footer-contact-line{
    margin-top:10px;
    font-size:14px;
    color:#cbd5e0;
}

.video-iframe {
    width: 100%;
    height: 100%;
    min-height: 200px;
    display: block;
    background: #000;
}

/* Add these styles to your existing styles.css */

/* News page specific styles */
.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
    margin: 40px 0;
}

.news-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.news-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.15);
}

.news-image {
    height: 200px;
    overflow: hidden;
}

.news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.news-card:hover .news-image img {
    transform: scale(1.05);
}

.news-content {
    padding: 25px;
}

.news-source {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.source-logo {
    font-weight: bold;
    font-size: 0.9rem;
    color: #3498db;
    margin-right: 10px;
}

.news-date {
    color: #95a5a6;
    font-size: 0.85rem;
}

.news-title {
    font-size: 1.3rem;
    color: #2c3e50;
    margin-bottom: 15px;
    line-height: 1.4;
}

.news-excerpt {
    color: #34495e;
    line-height: 1.6;
    margin-bottom: 20px;
    font-size: 0.95rem;
}

.news-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 15px;
}

.news-tag {
    background: #f8f9fa;
    color: #3498db;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

/* Responsive design for news */
@media (max-width: 768px) {
    .news-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .news-image {
        height: 180px;
    }
}

.load-more-btn{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    gap:10px;
    background:linear-gradient(135deg,#1d6ff3,#00c6ff);
    color:#fff;
    padding:14px 38px;
    border-radius:50px;
    font-size:15px;
    font-weight:600;
    text-decoration:none;
    box-shadow:0 12px 25px rgba(0,102,255,0.25);
    transition:all 0.35s ease;
    position:relative;
    overflow:hidden;
}

.load-more-btn i{
    font-size:14px;
    transition:transform 0.35s ease;
}

.load-more-btn::before{
    content:"";
    position:absolute;
    top:0;
    left:-100%;
    width:100%;
    height:100%;
    background:linear-gradient(120deg,transparent,rgba(255,255,255,0.35),transparent);
    transition:0.6s;
}

.load-more-btn:hover::before{
    left:100%;
}

.load-more-btn:hover{
    transform:translateY(-4px) scale(1.05);
    box-shadow:0 18px 35px rgba(0,102,255,0.35);
}

.load-more-btn:hover i{
    transform:rotate(90deg);
}
/* FIX: Remove gap from slider controls */
.slider-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-top: 20px;
    height: 40px; /* Fixed height */
}

.slider-arrow {
    margin: 0;
    padding: 0;
}

/* ===== REMOVE QUOTES BLOCK ABOVE FOOTER ===== */

.quotes{
    background: transparent !important;
    border-bottom: none !important;
    padding-bottom: 12px !important;
}

footer{
    background:var(--primary);
    color:white;
    padding:50px 0 30px;
    margin-top:0;
}


/* ===== FINAL QUOTE SLIDER DOT DESIGN ===== */
.slider-dots{
    display:flex;
    align-items:center;
    justify-content:center;
    gap:8px;
    min-width:120px;
}

.slider-dot{
    width:6px;
    height:6px;
    background:#d1d5db;
    border-radius:50%;
    transition:all 0.3s ease;
    cursor:pointer;
}

.slider-dot.active{
    width:10px;
    height:10px;
    background:#2563eb;
}

.quotes{
    background: transparent;
    border: none;
    padding: 0;
    margin: 0;
}

.content-section {
    max-width: 1000px !important;
    margin: 30px auto !important;
    padding: 0 20px !important;
}


/* ===== MOBILE MOVING TABLE FIX – RASANT RAZOR ===== */
@media (max-width:768px){

  .content-table{
      display:block;
      width:100%;
      overflow-x:auto;
      white-space:nowrap;
      border-radius:8px;
      -webkit-overflow-scrolling:touch;
  }

}

@media (max-width:768px){

/* Main content width */
.content-section{
    padding: 0 14px !important;
}

/* Paragraph perfect reading style */
.content-section p{
    width:100% !important;
    margin: 12px 0 !important;
    font-size:15.5px;
    line-height:1.75;
    text-align:left;
}

/* Headings spacing */
.content-section h2{
    font-size:22px;
    line-height:1.3;
    margin: 24px 0 10px;
}

.content-section h3{
    font-size:18px;
    margin: 20px 0 8px;
}

/* Bullet list clean look */
.content-section ul{
    padding-left:18px;
    margin:12px 0;
}

/* Paragraph perfect reading style */
.content-section p{
    width:100% !important;
    margin: 12px 0 !important;
    font-size:15.5px;
    line-height:1.75;
    text-align:left;
}

/* Headings spacing */
.content-section h2{
    font-size:22px;
    line-height:1.3;
    margin: 24px 0 10px;
}

.content-section h3{
    font-size:18px;
    margin: 20px 0 8px;
}

/* Bullet list clean look */
.content-section ul{
    padding-left:18px;
    margin:12px 0;
}

.content-section li{
    font-size:15px;
    line-height:1.6;

}
/* ===== MOBILE PERFECT TEXT LAYOUT FIX ===== */
@media (max-width:768px){

  .content-section{
      max-width:100% !important;
      padding:0 14px !important;
      margin:24px auto !important;
  }

  .content-section p,
  .content-section li{
      width:100% !important;
      margin:12px 0 !important;
      font-size:15.5px;
      line-height:1.75;
      text-align:left;
      word-break:break-word;
  }

  .content-section h2{
      font-size:22px;
      margin:26px 0 10px;
      text-align:left;
  }

  .content-section h3{
      font-size:18px;
      margin:20px 0 8px;
      text-align:left;
  }

  .content-section ul,
  .content-section ol{
      padding-left:18px;
      margin:12px 0;
  }
}

/* FINAL GALLERY GRID – 3 IMAGES PER ROW */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 25px;
  width: 100%;
}

/* Responsive */
@media (max-width: 992px) {
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 576px) {
  .gallery-grid {
    grid-template-columns: 1fr;
  }
}
