/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navigation */
/* Transparent Navbar */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 14px 5vw;
    background: transparent !important;
    border-bottom: none;
    box-shadow: none;
    z-index: 1000;
    transition: transform 0.45s ease, background 0.45s ease;
    will-change: transform;
}

/* Hide navbar on scroll (optional JS) */
.navbar.nav-hidden {
    transform: translateY(-120%);
}

/* Container */
.nav-container {
    max-width: 1200px;
    margin: 20px auto;
    display: flex;
    align-items: center;
    position: relative;   /* important */
}
/* Logo */
/* .nav-logo h3 {
    color: #ffffff !important;
    font-size: 1.4rem;
    font-weight: 700;
    letter-spacing: 0.2rem;
    text-transform: uppercase;
} */

/* Menu */
.nav-menu {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 28px;
    list-style: none;
    align-items: center;
}

/* Links */
.nav-link {
    text-decoration: none;
    color: #ffffff !important;
    font-size: 0.95rem;
    letter-spacing: 0.1rem;
    text-transform: uppercase;
    font-weight: 500;
    position: relative;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: #16e0a1;
}

/* Underline effect */
.nav-link::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -6px;
    width: 0;
    height: 2px;
    background: #16e0a1;
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

/* Hamburger */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.bar {
    width: 26px;
    height: 3px;
    background: #ffffff;
    margin: 4px 0;
    transition: 0.3s;
}


/* .navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(250, 250, 250, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    transition: all 0.3s ease;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.navbar.scrolled {
    background: rgba(250, 250, 250, 0.98);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.nav-logo h3 {
    color: #169976;
    font-size: 1.5rem;
    font-weight: 700;
}

.nav-menu {
    display: flex;
    list-style: none;
    align-items: center;
}

.nav-item {
    margin-left: 2rem;
}

.nav-link {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    color: #169976;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background: #169976;
    transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.bar {
    width: 25px;
    height: 3px;
    background: #333;
    margin: 3px 0;
    transition: 0.3s;
} */

/* Dropdown Styles */


/* .dropdown-toggle::after {
    content: ' ▼';
    font-size: 0.6rem;
} */

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.1);
    min-width: 200px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.05);
    display: none;
    flex-direction: column;
    z-index: 999;
}

.dropdown-link {
    display: block;
    padding: 10px 15px;
    text-decoration: none;
    color: #333;
    transition: background 0.3s ease;
}

.dropdown-link:hover {
    background: #f0f0f0;
    color: #169976;
}

/* Show dropdown on hover */
.nav-item.dropdown:hover .dropdown-menu {
    display: flex;
}



/* Hero Section */
.hero {
    height: 100vh;
    background: linear-gradient(50deg, #000000 0%, #635a5a 100%);
    display: flex;
    align-items: center;
    justify-content: right;
    text-align: right;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('./src/5.jpg') center/cover;
    opacity: 0.3;
    z-index: 1;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.1);
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    color: white;
    max-width: 800px;
    padding: 0 20px;
}

.hero-title {
    font-size: 4rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #f8f9fa;
}

.hero-description {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    line-height: 1.8;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: right;
    flex-wrap: wrap;
}

.btn {
    padding: 12px 30px;
    border: none;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-block;
    cursor: pointer;
}

.btn-primary {
    background: linear-gradient(45deg, #169976, #0d6b4f);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(22, 153, 118, 0.4);
}

.btn-secondary {
    background: transparent;
    color: white;
    border: 2px solid white;
}

.btn-secondary:hover {
    background: white;
    color: #333;
    transform: translateY(-2px);
}

.hero-scroll {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    font-size: 1.5rem;
    animation: bounce 2s infinite;
    z-index: 3;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    40% {
        transform: translateX(-50%) translateY(-10px);
    }
    60% {
        transform: translateX(-50%) translateY(-5px);
    }
}

/* Section Headers */
.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 1rem;
}

.section-header p {
    font-size: 1.1rem;
    color: #7f8c8d;
    max-width: 600px;
    margin: 0 auto;
}

/* Featured Section */
.featured {
    padding: 6rem 0;
    background: #fafafa;
}

.featured-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.featured-card {
    background: white;
    padding: 2.5rem;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.featured-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
}

.card-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(45deg, #169976, #0d6b4f);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

.card-icon i {
    font-size: 2rem;
    color: white;
}

.featured-card h3 {
    font-size: 1.5rem;
    color: #2c3e50;
    margin-bottom: 1rem;
}

.featured-card p {
    color: #7f8c8d;
    line-height: 1.8;
}

/* Quotes Section */
.quotes {
    padding: 6rem 0;
    background: linear-gradient(135deg, #169976 0%, #0d6b4f 100%);
}

.quotes .section-header h2,
.quotes .section-header p {
    color: white;
}

.quotes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.quote-card {
    background: rgba(250, 250, 250, 0.95);
    padding: 2.5rem;
    border-radius: 15px;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.quote-card:hover {
    transform: translateY(-5px);
    background: #fafafa;
}

.quote-icon {
    font-size: 2rem;
    color: #169976;
    margin-bottom: 1rem;
}

.quote-text {
    font-size: 1.1rem;
    font-style: italic;
    color: #2c3e50;
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.quote-author {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.author-image {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
}

.author-info h4 {
    color: #2c3e50;
    margin-bottom: 0.25rem;
}

.author-info span {
    color: #7f8c8d;
    font-size: 0.9rem;
}

/* Recent Books Section */
.recent-books {
    padding: 6rem 0;
    background: white;
}

.books-preview {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.book-card {
    text-align: center;
    transition: all 0.3s ease;
}

.book-card:hover {
    transform: translateY(-10px);
}

/* .book-cover {
    position: relative;
    margin-bottom: 1rem;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}  */

.book-cover img {
    width: 100%;
    height: 450px;
    object-fit: cover;
    transition: all 0.3s ease;
}

.book-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.3s ease;
}

.book-cover:hover .book-overlay {
    opacity: 1;
}

.btn-read {
    background: linear-gradient(45deg, #169976, #0d6b4f);
    color: white;
    padding: 12px 25px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-read:hover {
    transform: scale(1.05);
}

.book-info h3 {
    color: #2c3e50;
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

.book-info p {
    color: #7f8c8d;
    font-size: 0.9rem;
}

.view-all {
    text-align: center;
    margin-top: 3rem;
}

/* Contact Section */
.contact {
    padding: 6rem 0;
    background: #fafafa;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    margin-top: 3rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.contact-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(45deg, #169976, #0d6b4f);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-icon i {
    color: white;
    font-size: 1.2rem;
}

.contact-details h4 {
    color: #2c3e50;
    margin-bottom: 0.25rem;
}

.contact-details p {
    color: #7f8c8d;
}

.contact-form {
    background: white;
    padding: 2.5rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #169976;
}

/* Footer */
.footer {
    background: #2c3e50;
    color: white;
    padding: 3rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3,
.footer-section h4 {
    margin-bottom: 1rem;
    color: #169976;
}

.footer-section p {
    line-height: 1.8;
    color: #bdc3c7;
    margin-bottom: 1rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section ul li a {
    color: #bdc3c7;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: #169976;
}

.footer-section ul li i {
    width: 20px;
    color: #169976;
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.social-links a {
    width: 40px;
    height: 40px;
    background: #34495e;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: #169976;
    transform: translateY(-2px);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #34495e;
    color: #bdc3c7;
}

/* Books Page Styles */
.books-hero {
    padding: 120px 0 80px;
    background: linear-gradient(135deg, #169976 0%, #0d6b4f 100%);
    text-align: center;
    color: white;
}

.books-hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.books-collection {
    padding: 6rem 0;
    background: #fafafa;
}

.books-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.book-item {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.book-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
}

.book-item .book-cover {
    margin-bottom: 0;
}

.book-details {
    padding: 1.5rem;
}

.book-details h3 {
    color: #2c3e50;
    margin-bottom: 0.5rem;
    font-size: 1.3rem;
}

.book-details p {
    color: #7f8c8d;
    margin-bottom: 1rem;
    font-size: 0.95rem;
    line-height: 1.6;
}

.book-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
    color: #95a5a6;
    margin-bottom: 1rem;
}

/* About Page Styles */
.about-hero {
    padding: 120px 0 80px;
    background: linear-gradient(135deg, #169976 0%, #0d6b4f 100%);
    text-align: center;
    color: white;
}

.about-content {
    padding: 6rem 0;
    background: white;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 4rem;
    align-items: center;
}

.about-image {
    text-align: center;
}

.about-image img {
    width: 150%;
    max-width: 400px;
    height: 660px;
    object-fit: cover;
    border-radius: 15px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
}

.about-text {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #2c3e50;
}

.about-text h3 {
    color: #169976;
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.about-text p {
    margin-bottom: 1.5rem;
}

.achievements {
    padding: 6rem 0;
    background: #fafafa;
}

.achievements-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.achievement-card {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.achievement-card:hover {
    transform: translateY(-5px);
}

.achievement-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: #169976;
    display: block;
    margin-bottom: 0.5rem;
}

.achievement-label {
    color: #2c3e50;
    font-weight: 600;
}

/* Gallery Page Styles */
.gallery-hero {
    padding: 120px 0 80px;
    background: linear-gradient(135deg, #169976 0%, #0d6b4f 100%);
    text-align: center;
    color: white;
}

.gallery-albums {
    padding: 6rem 0;
    background: #fafafa;
}

.albums-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.album-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    cursor: pointer;
}

.album-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
}

.album-cover {
    height: 250px;
    background-size: cover;
    background-position: center;
    position: relative;
}

.album-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, transparent, rgba(0, 0, 0, 0.7));
    display: flex;
    align-items: end;
    padding: 1.5rem;
}

.album-info {
    color: white;
}

.album-info h3 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
}

.album-info p {
    font-size: 0.9rem;
    opacity: 0.9;
}

.album-details {
    padding: 1.5rem;
}

.album-meta {
    display: flex;
    justify-content: space-between;
    color: #7f8c8d;
    font-size: 0.9rem;
}

/* Gallery Modal */
.gallery-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 2000;
}

.gallery-modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
}

.modal-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 10px;
}

.modal-close {
    position: absolute;
    top: -50px;
    right: 0;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    background: none;
    border: none;
}

.modal-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(250, 250, 250, 0.2);
    border: none;
    color: white;
    font-size: 2rem;
    padding: 1rem;
    cursor: pointer;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.modal-nav:hover {
    background: rgba(250, 250, 250, 0.3);
}

.modal-prev {
    left: -80px;
}

.modal-next {
    right: -80px;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1rem;
    margin-top: 2rem;
}

.gallery-item {
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
    aspect-ratio: 1;
}

.gallery-item:hover {
    transform: scale(1.05);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
/* Journey Section */
.journey {
    padding: 6rem 0;
    background: white;
}

.timeline {
    position: relative;
    margin-top: 4rem;
}

.timeline-line {
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    background: #3498db;
    transform: translateX(-50%);
}

.timeline-item {
    display: flex;
    align-items: center;
    margin-bottom: 3rem;
    position: relative;
}

.timeline-item.left {
    justify-content: flex-end;
}

.timeline-content {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    width: 45%;
    margin-right: 5%;
}

.timeline-item.left .timeline-content {
    margin-right: 0;
    margin-left: 5%;
}

.timeline-marker {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 20px;
    background: #3498db;
    border-radius: 50%;
    border: 4px solid white;
    box-shadow: 0 0 0 4px #3498db;
}

.timeline-date {
    color: #3498db;
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.timeline-content h4 {
    color: #2c3e50;
    margin-bottom: 0.5rem;
}

.timeline-content p {
    color: #7f8c8d;
    line-height: 1.6;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }

    /* Navigation */
    .hamburger {
        display: flex;
        width: 44px;
        height: 44px;
        justify-content: center;
        align-items: center;
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(10px);
        width: 100%;
        text-align: center;
        transition: all 0.3s ease;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
        padding: 2rem 0;
        z-index: 999;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-item {
        margin: 1rem 0;
        width: 100%;
    }

    .nav-link {
        padding: 12px 20px;
        display: block;
        font-size: 1.1rem;
        min-height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .dropdown-menu {
        position: static;
        display: none;
        background: rgba(255, 255, 255, 0.95);
        box-shadow: none;
        border: none;
        margin-top: 0.5rem;
    }

    .nav-item.dropdown:hover .dropdown-menu,
    .nav-item.dropdown.active .dropdown-menu {
        display: block;
    }

    .dropdown-link {
        padding: 12px 20px;
        min-height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    /* Hero Section */
    .hero {
        height: 90vh;
        padding: 100px 0 50px;
        text-align: center;
    }

    .hero-title {
        font-size: 2.2rem;
        line-height: 1.2;
        margin-bottom: 1rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
        margin-bottom: 1.5rem;
    }

    .hero-description {
        font-size: 1rem;
        line-height: 1.6;
        margin-bottom: 2rem;
        padding: 0 10px;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }

    .btn {
        width: 100%;
        max-width: 280px;
        padding: 14px 30px;
        min-height: 48px;
        font-size: 1rem;
    }

    /* Section Headers */
    .section-header {
        margin-bottom: 3rem;
    }

    .section-header h2 {
        font-size: 1.8rem;
        line-height: 1.3;
    }

    .section-header p {
        font-size: 1rem;
        line-height: 1.6;
    }

    /* Featured Section */
    .featured {
        padding: 4rem 0;
    }

    .featured-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .featured-card {
        padding: 2rem 1.5rem;
        text-align: center;
    }

    .card-icon {
        width: 70px;
        height: 70px;
        margin: 0 auto 1rem;
    }

    .card-icon i {
        font-size: 1.8rem;
    }

    .featured-card h3 {
        font-size: 1.3rem;
        margin-bottom: 0.8rem;
    }

    .featured-card p {
        font-size: 0.95rem;
        line-height: 1.6;
    }

    /* Quotes Section */
    .quotes {
        padding: 4rem 0;
    }

    .quotes-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .quote-card {
        padding: 2rem 1.5rem;
    }

    .quote-text {
        font-size: 1rem;
        line-height: 1.6;
    }

    .quote-author {
        flex-direction: column;
        text-align: center;
        gap: 0.8rem;
    }

    .author-image {
        width: 50px;
        height: 50px;
    }

    /* Recent Books */
    .recent-books {
        padding: 4rem 0;
    }

    .books-preview {
        grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
        gap: 1.5rem;
    }

    .book-card {
        text-align: center;
    }

    .book-cover img {
        height: 350px;
        object-fit: cover;
    }

    .book-info h3 {
        font-size: 1.1rem;
        line-height: 1.3;
    }

    .book-info p {
        font-size: 0.9rem;
        line-height: 1.5;
    }

    /* Contact Section */
    .contact {
        padding: 4rem 0;
    }

    .contact-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .contact-item {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
        margin-bottom: 2rem;
    }

    .contact-icon {
        width: 50px;
        height: 50px;
        margin: 0 auto;
    }

    .contact-details h4 {
        margin-bottom: 0.5rem;
    }

    .contact-form {
        padding: 2rem 1.5rem;
    }

    .form-group input,
    .form-group textarea {
        padding: 14px 16px;
        font-size: 16px; /* Prevents zoom on iOS */
        min-height: 48px;
    }

    /* Footer */
    .footer {
        padding: 2rem 0 1rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }

    .footer-section h3,
    .footer-section h4 {
        margin-bottom: 1rem;
    }

    .footer-section ul li {
        margin-bottom: 0.8rem;
    }

    .social-links {
        justify-content: center;
    }

    .social-links a {
        width: 44px;
        height: 44px;
    }

    /* Books Page */
    .books-hero {
        padding: 100px 0 60px;
    }

    .books-hero h1 {
        font-size: 2rem;
    }

    .books-collection {
        padding: 4rem 0;
    }

    .books-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 1.5rem;
    }

    .book-item {
        margin-bottom: 0;
    }

    .book-details {
        padding: 1.2rem;
    }

    .book-details h3 {
        font-size: 1.2rem;
    }

    .book-details p {
        font-size: 0.9rem;
    }

    /* About Page */
    .about-hero {
        padding: 100px 0 60px;
    }

    .about-hero h1 {
        font-size: 2rem;
    }

    .about-content {
        padding: 4rem 0;
    }

    .about-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .about-image img {
        max-width: 280px;
        height: 350px;
    }

    .about-text {
        font-size: 1rem;
        line-height: 1.7;
    }

    .about-text h3 {
        font-size: 1.3rem;
    }

    .achievements {
        padding: 4rem 0;
    }

    .achievements-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 1.5rem;
    }

    .achievement-card {
        padding: 1.5rem;
    }

    .achievement-number {
        font-size: 2rem;
    }

    /* Gallery Page */
    .gallery-hero {
        padding: 100px 0 60px;
    }

    .gallery-hero h1 {
        font-size: 2rem;
    }

    .gallery-albums {
        padding: 4rem 0;
    }

    .albums-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .album-card {
        margin-bottom: 0;
    }

    .album-cover {
        height: 200px;
    }

    .album-info h3 {
        font-size: 1.2rem;
    }

    .album-details {
        padding: 1.2rem;
    }

    /* Modal */
    .modal-nav {
        display: none;
    }

    .modal-close {
        width: 44px;
        height: 44px;
        font-size: 1.5rem;
    }

    /* Journey/Timeline */
    .journey {
        padding: 4rem 0;
    }

    .timeline-item {
        margin-bottom: 2rem;
    }

    .timeline-content {
        padding: 1.5rem;
        width: 85%;
    }

    .timeline-marker {
        width: 16px;
        height: 16px;
    }

    /* Articles */
    .articles {
        padding: 4rem 0;
    }

    .articles-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .article-card {
        margin-bottom: 0;
    }

    .article-image {
        height: 200px;
    }

    .article-content {
        padding: 1.5rem;
    }

    .article-content h3 {
        font-size: 1.2rem;
    }

    .article-footer {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }

    /* Interviews */
    .interviews {
        padding: 4rem 0;
    }

    .interviews-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .interview-card {
        max-width: 100%;
        margin-bottom: 0;
    }

    .video-container {
        height: 220px;
    }

    .interview-info {
        padding: 1.5rem;
    }

    .interview-info h3 {
        font-size: 1.2rem;
    }

    .interview-meta {
        flex-direction: column;
        gap: 0.8rem;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .container {
        padding: 0 15px;
    }
    
    .books-grid {
        grid-template-columns: 1fr;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    }


    /* Articles Section */
.articles {
    padding: 6rem 0;
    background: white;
}

.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.article-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.article-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
}

.article-image {
    position: relative;
    height: 250px;
    overflow: hidden;
}

.article-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.3s ease;
}

.article-card:hover .article-image img {
    transform: scale(1.05);
}

.article-date {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: linear-gradient(45deg, #169976, #0d6b4f);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

.article-content {
    padding: 2rem;
}

.article-category {
    display: inline-block;
    background: rgba(22, 153, 118, 0.1);
    color: #169976;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.article-content h3 {
    color: #2c3e50;
    font-size: 1.3rem;
    margin-bottom: 1rem;
    line-height: 1.4;
}

.article-content p {
    color: #7f8c8d;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.article-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.article-author {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.article-author img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

.article-author span {
    color: #2c3e50;
    font-weight: 500;
    font-size: 0.9rem;
}

.read-more {
    color: #169976;
    text-decoration: none;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

.read-more:hover {
    color: #0d6b4f;
    transform: translateX(5px);
}

/* Auto-detect Sindhi / Arabic-script text */
:lang(sd),
[lang="sd"] {
    font-family: 'SindhiFont', 'Scheherazade New', serif;
    direction: rtl;
    unicode-bidi: isolate;
}



/* Journey Section */
.journey {
    padding: 6rem 0;
    background: white;
}

.timeline {
    position: relative;
    margin-top: 4rem;
}

.timeline-line {
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    background: #3498db;
    transform: translateX(-50%);
}

.timeline-item {
    display: flex;
    align-items: center;
    margin-bottom: 3rem;
    position: relative;
}

.timeline-item.left {
    justify-content: flex-end;
}

.timeline-content {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    width: 45%;
    margin-right: 5%;
}

.timeline-item.left .timeline-content {
    margin-right: 0;
    margin-left: 5%;
}

.timeline-marker {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 20px;
    background: #3498db;
    border-radius: 50%;
    border: 4px solid white;
    box-shadow: 0 0 0 4px #3498db;
}

.timeline-date {
    color: #3498db;
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.timeline-content h4 {
    color: #2c3e50;
    margin-bottom: 0.5rem;
}

.timeline-content p {
    color: #7f8c8d;
    line-height: 1.6;
}

}