:root {
    --primary-color: #6a1b9a;
    --primary-light: #9c4dcc;
    --primary-dark: #38006b;
    --secondary-color: #ff6f00;
    --accent-color: #ffd600;
    --text-dark: #212121;
    --text-light: #757575;
    --bg-light: #fafafa;
    --bg-cream: #fff8e1;
    --border-color: #e0e0e0;
    --success-color: #4caf50;
    --danger-color: #f44336;
}

* {
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', 'Noto Sans Devanagari', sans-serif;
    font-size: 1rem;
    line-height: 1.7;
    color: var(--text-dark);
    background-color: var(--bg-light);
}

.hindi-text {
    font-family: 'Noto Sans Devanagari', sans-serif;
}

.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--primary-color);
    color: white;
    padding: 8px 16px;
    z-index: 9999;
    text-decoration: none;
    transition: top 0.3s;
}

.skip-link:focus {
    top: 0;
}

.navbar {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%) !important;
    --nav-height: 72px;
    min-height: var(--nav-height);
    padding: 0;
}

.theme-dropdown .dropdown-menu {
    min-width: 200px;
}

.theme-swatches {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.theme-swatch {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 2px solid rgba(255,255,255,0.35);
    background: #333;
    cursor: pointer;
    padding: 0;
}

.theme-swatch.active {
    box-shadow: 0 0 0 3px rgba(255,255,255,0.4);
    border-color: #fff;
}

.read-mode-toggle.active {
    background: #ffffff;
    color: #000000;
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    height: var(--nav-height);
    padding: 0;
}

.site-logo {
    height: 40px;
    width: auto;
    max-width: 220px;
    object-fit: contain;
    display: block;
}

.navbar .site-logo {
    height: 90%;
    max-height: 90%;
    max-width: 240px;
}

.footer-logo {
    height: 32px;
}

.site-footer {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
}

.site-footer .social-links {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

@media (max-width: 768px) {
    .site-footer .col-md-4,
    .site-footer .col-md-6 {
        text-align: center;
    }

    .site-footer .social-links {
        justify-content: center;
    }

    .site-footer .list-unstyled {
        padding-left: 0;
    }

    .site-footer .list-unstyled li {
        margin: 0.25rem 0;
    }

    .footer-brand h5 {
        justify-content: center;
    }
}

body.read-mode {
    background: #0b0b0b;
    color: #e6e6e6;
}

body.read-mode .navbar,
body.read-mode .site-footer {
    background: linear-gradient(135deg, #0b0b0b 0%, #1c1c1c 100%) !important;
}

body.read-mode .hero-section,
body.read-mode .hero-slider {
    background-color: #0b0b0b !important;
}

body.read-mode .bg-white,
body.read-mode .card,
body.read-mode .poem-card,
body.read-mode .book-card,
body.read-mode .featured-poem,
body.read-mode .timeline-content,
body.read-mode .table,
body.read-mode .modal-content {
    background: #161616 !important;
    color: #e6e6e6;
    border-color: #2a2a2a !important;
}

body.read-mode .card-header,
body.read-mode .card-footer {
    background: #1d1d1d !important;
    border-color: #2a2a2a !important;
}

body.read-mode .text-muted {
    color: #9aa0a6 !important;
}

body.read-mode a,
body.read-mode .nav-link {
    color: #e0e0e0;
}

body.read-mode .section-title {
    color: #e6e6e6;
}

body.read-mode .category-badge {
    background: #2a2a2a;
    color: #e6e6e6;
}

body.read-mode .btn-outline-primary {
    color: #e6e6e6;
    border-color: #6b7280;
}

body.read-mode .btn-outline-primary:hover {
    background: #2a2a2a;
    color: #ffffff;
}

body.read-mode input,
body.read-mode textarea,
body.read-mode select {
    background: #111111;
    color: #e6e6e6;
    border: 1px solid #333333;
}

body.read-mode .text-dark {
    color: #e6e6e6 !important;
}

body.read-mode .breadcrumb,
body.read-mode .breadcrumb a {
    color: #cbd5e1;
}

body.read-mode .breadcrumb-item.active {
    color: #9aa0a6;
}

body.read-mode .breadcrumb-item + .breadcrumb-item::before {
    color: #6b7280;
}

body.read-mode .featured-poem h2,
body.read-mode .featured-poem .poem-content,
body.read-mode .poem-content {
    color: #e6e6e6;
}

body.read-mode .poem-card .poem-title,
body.read-mode .poem-card .poem-title a {
    color: #f3f4f6;
}

body.read-mode .poem-card .poem-excerpt,
body.read-mode .poem-card .poem-stats {
    color: #cbd5e1;
}

body.read-mode .poem-card .card-footer {
    border-top-color: #2a2a2a;
}

body.read-mode .comment-form {
    background: #161616;
    color: #e6e6e6;
    border: 1px solid #2a2a2a;
}

body.read-mode .comment-form h4,
body.read-mode .comment-form .form-label {
    color: #f3f4f6;
}

body.read-mode .comment-item {
    background: #1b1b1b;
    color: #e6e6e6;
    border: 1px solid #2a2a2a;
    box-shadow: none;
}

body.read-mode .comment-item .comment-author {
    color: #f3f4f6;
}

body.read-mode .comment-item .comment-date {
    color: #9aa0a6;
}

body.read-mode .filter-section {
    background: #161616;
    border: 1px solid #2a2a2a;
}

body.read-mode .filter-btn {
    background: #111111;
    border-color: #2a2a2a;
    color: #e6e6e6;
}

body.read-mode .filter-btn:hover,
body.read-mode .filter-btn.active {
    background: var(--secondary-color);
    border-color: var(--secondary-color);
    color: #111111;
}

body.read-mode .bio-section {
    background: #0b0b0b;
}

body.read-mode .bio-content h2 {
    color: #f3f4f6;
}

body.read-mode .bio-content p {
    color: #cbd5e1;
}

body.read-mode .timeline::before {
    background: #2a2a2a;
}

body.read-mode .timeline-date {
    color: #f3f4f6;
}

body.read-mode .book-card .book-title,
body.read-mode .book-card .book-price {
    color: #f3f4f6;
}

body.read-mode .book-card .original-price {
    color: #9aa0a6;
}

body.read-mode .media-tabs {
    border-color: #2a2a2a;
}

body.read-mode .media-tabs .nav-link {
    color: #cbd5e1;
}

body.read-mode .media-tabs .nav-link.active {
    color: #ffffff;
}

body.read-mode .media-tabs .nav-link.active::after {
    background: var(--secondary-color);
}

body.read-mode .like-btn,
body.read-mode .dislike-btn {
    color: #e6e6e6;
}

body.read-mode ::placeholder {
    color: #6b7280;
    opacity: 1;
}

@media (max-width: 768px) {
    .navbar {
        --nav-height: 60px;
    }
}

.empty-logo {
    height: 64px;
    width: auto;
    opacity: 0.85;
    object-fit: contain;
}

.nav-link {
    font-weight: 500;
    padding: 0.5rem 1rem !important;
    transition: all 0.3s ease;
}

.nav-link:hover {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 5px;
}

.hero-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
    padding: 4rem 0;
    min-height: 60vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.hero-content {
    position: relative;
    z-index: 1;
}

.quote-slider {
    position: relative;
    min-height: 180px;
}

.hero-quote {
    font-size: 1.75rem;
    font-style: italic;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    position: absolute;
    width: 100%;
    left: 0;
    top: 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: opacity 0.5s ease, transform 0.5s ease, visibility 0.5s ease;
    pointer-events: none;
}

.hero-quote.active {
    position: relative;
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
}

.quote-text {
    margin-bottom: 0.5rem;
}

.quote-text-hi {
    font-size: 1.25rem;
    opacity: 0.9;
}

.quote-author {
    font-size: 1.1rem;
    font-style: normal;
    margin-top: 0.75rem;
}

.quote-indicators {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1rem;
}

.quote-indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: 2px solid rgba(255,255,255,0.5);
    background: transparent;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
}

.quote-indicator.active {
    background: white;
    border-color: white;
}

.quote-indicator:hover {
    border-color: white;
}

.hero-buttons .btn {
    padding: 0.75rem 2rem;
    font-weight: 600;
    margin: 0.5rem;
    border-radius: 50px;
    transition: all 0.3s ease;
}

.btn-hero-primary {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
    color: white;
}

.btn-hero-primary:hover {
    background-color: #e65100;
    border-color: #e65100;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 111, 0, 0.4);
}

.btn-hero-secondary {
    background-color: transparent;
    border: 2px solid white;
    color: white;
}

.btn-hero-secondary:hover {
    background-color: white;
    color: var(--primary-color);
    transform: translateY(-2px);
}

.section-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 60px;
    height: 3px;
    background: var(--secondary-color);
}

.poem-card {
    background: white;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    overflow: hidden;
    height: 100%;
}

.poem-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.poem-card .card-body {
    padding: 1.5rem;
}

.poem-card .category-badge {
    background-color: var(--primary-light);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 500;
}

.poem-card .poem-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-dark);
    margin: 1rem 0;
}

.poem-card .poem-excerpt {
    color: var(--text-light);
    font-size: 0.95rem;
    line-height: 1.6;
}

.poem-card .card-footer {
    background: transparent;
    border-top: 1px solid var(--border-color);
    padding: 1rem 1.5rem;
}

.poem-card .poem-stats {
    display: flex;
    gap: 1rem;
    color: var(--text-light);
    font-size: 0.85rem;
}

.featured-poem {
    background: linear-gradient(135deg, var(--bg-cream) 0%, #fff 100%);
    border-radius: 20px;
    padding: 3rem;
    box-shadow: 0 10px 40px rgba(106, 27, 154, 0.1);
}

.featured-poem .featured-label {
    background-color: var(--accent-color);
    color: var(--text-dark);
    padding: 0.5rem 1.5rem;
    border-radius: 25px;
    font-weight: 600;
    display: inline-block;
    margin-bottom: 1.5rem;
}

.featured-poem .poem-content {
    font-size: 1.3rem;
    line-height: 2;
    color: var(--text-dark);
}

.book-card {
    background: white;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    overflow: hidden;
}

.book-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.book-card .book-cover {
    height: 250px;
    background-color: var(--primary-light);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 4rem;
}

.book-card .book-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.book-card .card-body {
    padding: 1.5rem;
}

.book-card .book-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.book-card .book-price {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary-color);
}

.book-card .original-price {
    text-decoration: line-through;
    color: var(--text-light);
    font-size: 0.9rem;
    margin-left: 0.5rem;
}

.bio-section {
    background-color: white;
    padding: 4rem 0;
}

.bio-image {
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    max-width: 100%;
    height: auto;
}

.bio-content h2 {
    color: var(--primary-color);
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.bio-content p {
    font-size: 1.1rem;
    color: var(--text-light);
    line-height: 1.8;
}

.timeline {
    position: relative;
    padding: 2rem 0;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 3px;
    height: 100%;
    background: var(--primary-color);
}

.timeline-item {
    position: relative;
    margin-bottom: 3rem;
}

.timeline-content {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    width: 45%;
}

.timeline-item:nth-child(odd) .timeline-content {
    margin-left: auto;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 20px;
    background: var(--secondary-color);
    border-radius: 50%;
    border: 4px solid white;
    z-index: 1;
}

.timeline-date {
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.like-btn, .dislike-btn {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.2rem;
    padding: 0.5rem;
    transition: all 0.3s ease;
}

.like-btn:hover {
    color: var(--success-color);
    transform: scale(1.2);
}

.dislike-btn:hover {
    color: var(--danger-color);
    transform: scale(1.2);
}

.like-btn.active {
    color: var(--success-color);
}

.dislike-btn.active {
    color: var(--danger-color);
}

.share-buttons {
    display: flex;
    gap: 0.5rem;
}

.share-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
}

.share-btn:hover {
    transform: scale(1.1);
    color: white;
}

.share-btn.whatsapp { background-color: #25d366; }
.share-btn.facebook { background-color: #1877f2; }
.share-btn.twitter { background-color: #1da1f2; }

.high-contrast {
    --primary-color: #000;
    --text-dark: #000;
    --text-light: #333;
    --bg-light: #fff;
    background-color: #fff !important;
}

.high-contrast .navbar,
.high-contrast .hero-section {
    background: #000 !important;
}

.high-contrast .poem-card,
.high-contrast .book-card,
.high-contrast .featured-poem {
    border: 2px solid #000;
}

.high-contrast a {
    text-decoration: underline;
}

@media (max-width: 768px) {
    .hero-section {
        padding: 3rem 0;
        min-height: auto;
    }
    
    .hero-quote {
        font-size: 1.25rem;
    }
    
    .hero-buttons .btn {
        display: block;
        width: 100%;
        margin: 0.5rem 0;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    .featured-poem {
        padding: 1.5rem;
    }
    
    .featured-poem .poem-content {
        font-size: 1.1rem;
    }
    
    .timeline::before {
        left: 20px;
    }
    
    .timeline-content {
        width: calc(100% - 50px);
        margin-left: 50px !important;
    }
    
    .timeline-item::before {
        left: 20px;
    }
}

.media-tabs {
    border-bottom: 2px solid var(--border-color);
    margin-bottom: 2rem;
}

.media-tabs .nav-link {
    color: var(--text-light);
    border: none;
    padding: 1rem 2rem;
    font-weight: 500;
    position: relative;
}

.media-tabs .nav-link.active {
    color: var(--primary-color);
    background: none;
}

.media-tabs .nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--primary-color);
}

.audio-player {
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary-color) 100%);
    padding: 2rem;
    border-radius: 15px;
    color: white;
}

.audio-player audio {
    width: 100%;
    margin-top: 1rem;
}

.video-container {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: 15px;
}

.video-container iframe,
.video-container video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.comment-form {
    background: var(--bg-light);
    padding: 2rem;
    border-radius: 15px;
    margin-top: 2rem;
}

.comment-item {
    background: white;
    padding: 1.5rem;
    border-radius: 10px;
    margin-bottom: 1rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.comment-item .comment-author {
    font-weight: 600;
    color: var(--primary-color);
}

.comment-item .comment-date {
    font-size: 0.85rem;
    color: var(--text-light);
}

.loading-spinner {
    display: flex;
    justify-content: center;
    padding: 2rem;
}

.loading-spinner::after {
    content: '';
    width: 40px;
    height: 40px;
    border: 4px solid var(--border-color);
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.filter-section {
    background: white;
    padding: 1.5rem;
    border-radius: 15px;
    margin-bottom: 2rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.filter-btn {
    border: 2px solid var(--border-color);
    background: white;
    padding: 0.5rem 1.25rem;
    border-radius: 25px;
    margin: 0.25rem;
    transition: all 0.3s ease;
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

*:focus {
    outline: 3px solid var(--secondary-color);
    outline-offset: 2px;
}

*:focus:not(:focus-visible) {
    outline: none;
}

*:focus-visible {
    outline: 3px solid var(--secondary-color);
    outline-offset: 2px;
}

a:focus-visible,
button:focus-visible,
.btn:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
    outline: 3px solid var(--secondary-color);
    outline-offset: 2px;
    box-shadow: 0 0 0 4px rgba(255, 111, 0, 0.2);
}

.like-btn:focus-visible,
.dislike-btn:focus-visible,
.share-btn:focus-visible {
    transform: scale(1.1);
    outline: 3px solid var(--secondary-color);
}

.filter-btn:focus-visible {
    outline: 3px solid var(--secondary-color);
    background: var(--primary-light);
    color: white;
}

.poem-card:focus-within,
.book-card:focus-within {
    box-shadow: 0 0 0 3px var(--secondary-color);
    transform: translateY(-2px);
}

.btn-contrast {
    border-radius: 50%;
    width: 40px;
    height: 40px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

.hero-slider {
    position: relative;
}

.hero-slider .carousel-item {
    height: 70vh;
    min-height: 500px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.hero-slider .carousel-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: none;
}

.hero-slider .carousel-item.has-content::before {
    background: linear-gradient(135deg, rgba(106, 27, 154, 0.45) 0%, rgba(56, 0, 107, 0.55) 100%);
}

.hero-slider .carousel-caption {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    bottom: auto;
    left: 10%;
    right: 10%;
    text-align: center;
}

.hero-slider .carousel-caption h2 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.hero-slider .carousel-caption p {
    font-size: 1.25rem;
    max-width: 700px;
    margin: 0 auto;
}

.hero-slider .carousel-control-prev,
.hero-slider .carousel-control-next {
    width: 5%;
    opacity: 0.8;
}

.hero-slider .carousel-indicators {
    bottom: 30px;
}

.hero-slider .carousel-indicators button {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin: 0 5px;
}

@media (max-width: 768px) {
    .hero-slider .carousel-item {
        height: 32vh;
        min-height: 220px;
        background-size: contain;
        background-position: center;
        background-color: var(--primary-dark);
    }
    
    .hero-slider .carousel-caption h2 {
        font-size: 1.4rem;
    }
    
    .hero-slider .carousel-caption p {
        font-size: 0.95rem;
    }

    .hero-slider .carousel-caption {
        left: 6%;
        right: 6%;
    }

    .hero-slider .carousel-caption .btn {
        padding: 0.45rem 1rem;
        font-size: 0.9rem;
    }

    .hero-slider .carousel-indicators {
        bottom: 8px;
    }

    .hero-slider .carousel-item.has-content::before {
        background: linear-gradient(135deg, rgba(106, 27, 154, 0.25) 0%, rgba(56, 0, 107, 0.35) 100%);
    }

    .book-card .book-cover {
        height: 100px;
    }

    .book-card .book-cover img {
        object-fit: contain;
        background-color: #fff;
    }

    .book-card .card-body {
        padding: 0.75rem;
    }

    .book-card .book-title {
        font-size: 0.95rem;
    }

    .book-card .book-price {
        font-size: 0.95rem;
    }

    .book-card .btn {
        padding: 0.4rem 0.9rem;
        font-size: 0.9rem;
    }

    .books-single .single-book {
        flex: 0 0 100%;
        max-width: 100%;
    }
}

@media (max-width: 576px) {
    .filter-section {
        padding: 0.75rem;
    }

    .filter-section .form-label {
        font-size: 0.8rem;
    }

    .filter-section .filter-btn {
        font-size: 0.7rem;
        padding: 0.2rem 0.55rem;
        border-width: 1px;
        flex: 0 0 auto;
        width: auto;
        white-space: nowrap;
    }
}

.footer-credit {
    font-size: 0.72rem;
}

.social-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.social-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    width: 100%;
    max-width: 1080px;
    margin: 0 auto;
    gap: 1.5rem;
}

.social-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgba(0,0,0,0.06);
    box-shadow: 0 6px 18px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.social-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.12);
}

.social-card-header {
    padding: 0.85rem 1.15rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    border-bottom: 1px solid #eee;
}

.social-card .social-icon {
    font-size: 1.1rem;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: white;
}

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

.social-twitter .social-icon {
    background: #000;
}

.social-instagram .social-icon {
    background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
}

.social-youtube .social-icon {
    background: #ff0000;
}

.social-linkedin .social-icon {
    background: #0a66c2;
}

.social-card .platform-name {
    font-weight: 600;
    font-size: 1rem;
    color: #333;
}

.social-card-body {
    flex: 1;
    padding: 0;
    display: flex;
    flex-direction: column;
    background: #fff;
}

.social-embed {
    flex: 1;
    width: 100%;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.social-embed iframe {
    width: 100%;
    flex: 1;
}

.facebook-embed iframe {
    min-height: 300px;
}

.twitter-embed {
    min-height: 300px;
}

.instagram-embed,
.linkedin-embed {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 220px;
}

.instagram-feed-placeholder {
    width: 100%;
    height: 100%;
}

.instagram-profile-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: inherit;
    padding: 1.5rem 1rem;
    height: 100%;
    background: linear-gradient(135deg, #fafafa 0%, #fff 100%);
}

.instagram-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.instagram-header i {
    font-size: 2rem;
    background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.instagram-header span {
    font-weight: 600;
    color: #333;
}

.instagram-cta p {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 0.75rem;
}

.youtube-embed {
    display: flex;
    flex-direction: column;
}

.youtube-embed .ratio {
    flex: 1;
}

.youtube-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 200px;
    background: #f9f9f9;
}

.btn-youtube {
    background: #ff0000;
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-youtube:hover {
    background: #cc0000;
    color: white;
}

.linkedin-profile-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    text-align: center;
    background: linear-gradient(135deg, #f0f5ff 0%, #fff 100%);
    height: 100%;
    min-height: 200px;
}

.linkedin-profile-card i {
    color: #0a66c2;
    margin-bottom: 0.75rem;
}

.linkedin-profile-card p {
    color: #666;
    margin-bottom: 0.75rem;
    font-size: 0.9rem;
}

.btn-instagram {
    background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-instagram:hover {
    transform: scale(1.05);
    color: white;
    box-shadow: 0 4px 15px rgba(225, 48, 108, 0.4);
}

.btn-linkedin {
    background: #0a66c2;
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-linkedin:hover {
    background: #004182;
    color: white;
}

.social-card-footer {
    padding: 0.7rem 1rem;
    border-top: 1px solid #eee;
    text-align: center;
    background: #fafafa;
}

.social-card-footer .follow-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.88rem;
    transition: color 0.2s ease;
}

.social-card-footer .follow-link:hover {
    color: var(--secondary-color);
}

@media (min-width: 1200px) {
    .social-col {
        flex: 0 1 320px;
        max-width: 320px;
    }
}

@media (max-width: 1199px) {
    .social-col {
        flex: 0 1 300px;
        max-width: 300px;
    }
}

@media (max-width: 991px) {
    .social-col {
        flex: 0 1 280px;
        max-width: 320px;
    }
}

@media (max-width: 575px) {
    .social-grid {
        width: 100%;
    }
    .social-col {
        flex: 1 1 100%;
        max-width: 100%;
    }
}
