/* Design Tokens - Based on Antarlipi Branding (theme4.png) */
:root {
    --primary-burgundy: #5a1820;       /* Rich dark burgundy from theme4 */
    --dark-burgundy: #3c0d13;          /* Even deeper burgundy for dark panels/footers */
    --accent-gold: #bfa15f;            /* Antique Gold */
    --light-gold: #ebdcc4;             /* Soft cream gold */
    --bg-parchment: #f5eedc;           /* Main parchment cream background */
    --bg-parchment-dark: #ebdcb9;      /* Slightly darker parchment/shadow */
    --bg-card: #fdfcf9;                /* Clean white paper card background */
    --text-header: #421016;            /* Deep dark burgundy for headers */
    --text-body: #3c2e2b;              /* Charcoal/sepia dark brown for readability */
    --text-light: #6e5e5a;             /* Muted sepia */
    --transition: all 0.3s ease;
}

body {
    font-family: 'Inter', 'Noto Sans Devanagari', -apple-system, sans-serif;
    color: var(--text-body);
    line-height: 1.7;
    overflow-x: hidden;
    background-color: var(--bg-parchment);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='400' height='400'%3E%3Cfilter id='a'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.04' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='400' height='400' fill='%23f5eedc'/%3E%3Crect width='400' height='400' filter='url(%23a)' opacity='0.09'/%3E%3C/svg%3E");
}

h1,
h2,
h3,
h4,
h5,
.display-font {
    font-family: 'Playfair Display', 'Noto Sans Devanagari', serif;
    color: var(--text-header);
    font-weight: 700;
}

/* Script Cursive text for decorative lines like 'You Inspire.' */
.script-font {
    font-family: 'Pinyon Script', cursive;
    color: var(--accent-gold);
    font-size: 3.5rem;
    font-weight: 400;
    line-height: 1.2;
}

/* Navbar */
.navbar {
    background: rgba(245, 238, 220, 0.95) !important;
    backdrop-filter: blur(10px);
    border-bottom: 2px solid var(--accent-gold);
    padding: 15px 0;
    transition: var(--transition);
}

.navbar-brand {
    font-size: 1.6rem;
    color: var(--text-header) !important;
    letter-spacing: 1px;
}

.nav-link {
    color: var(--text-body) !important;
    font-weight: 600;
    margin: 0 12px;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-burgundy) !important;
}

.navbar-toggler {
    border-color: var(--primary-burgundy) !important;
    padding: 6px 10px;
}

.navbar-toggler:focus {
    box-shadow: 0 0 0 0.25rem rgba(90, 24, 32, 0.25) !important;
    border-color: var(--primary-burgundy) !important;
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3E%3Cpath stroke='%235a1820' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2.5' d='M4 7h22M4 15h22M4 23h22'/%3E%3C/svg%3E") !important;
}

/* Hero Section */
.hero {
    min-height: 480px;
    height: 65vh;
    max-height: 580px;
    display: flex;
    align-items: center;
    position: relative;
    background-color: var(--bg-parchment);
    background-image: url("images/sliderbg.jpg");
    background-size: cover;
    background-position: center;
    border-bottom: 1px solid var(--light-gold);
}

.hero h1 {
    font-size: 3.8rem;
    margin-bottom: 10px;
    color: var(--text-header);
    font-weight: 800;
}

@media (max-width: 991.98px) {
    .hero {
        height: auto !important;
        min-height: 380px !important;
        max-height: none !important;
        padding: 40px 0 !important;
    }
    
    .hero h1 {
        font-size: 2.8rem !important;
    }
    
    .script-font {
        font-size: 2.2rem !important;
    }
    
    .hero-slide-image,
    .hero-image-col {
        display: none !important;
    }
}

@media (max-width: 575.98px) {
    .hero h1 {
        font-size: 2.2rem !important;
    }
    
    .script-font {
        font-size: 1.8rem !important;
    }
    
    .hero .btn {
        padding: 10px 20px !important;
        font-size: 0.8rem !important;
    }
}

/* Buttons */
.btn-gold {
    background-color: var(--primary-burgundy);
    color: #ffffff;
    border: 1px solid var(--primary-burgundy);
    padding: 12px 30px;
    border-radius: 4px;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 1px;
    transition: var(--transition);
}

.btn-gold:hover {
    background-color: var(--accent-gold);
    color: #ffffff;
    border-color: var(--accent-gold);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(191, 161, 95, 0.4);
}

.btn-outline-gold {
    border: 2px solid var(--accent-gold);
    color: var(--primary-burgundy);
    background: transparent;
    padding: 10px 28px;
    border-radius: 4px;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 1px;
}

.btn-outline-gold:hover {
    background: var(--accent-gold);
    color: #ffffff;
}

/* Cards */
.service-card {
    border: 1px solid rgba(191, 161, 95, 0.2);
    border-radius: 8px;
    padding: 35px 25px;
    transition: var(--transition);
    background: var(--bg-card);
    height: 100%;
    box-shadow: 0 8px 24px rgba(60, 46, 43, 0.05);
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--primary-burgundy);
    transform: scaleX(0);
    transition: var(--transition);
    transform-origin: left;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 16px 32px rgba(90, 24, 32, 0.08);
    border-color: rgba(191, 161, 95, 0.4);
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-card i {
    font-size: 2rem;
    color: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-burgundy);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    margin: 0 auto 20px auto;
    transition: var(--transition);
    box-shadow: 0 4px 10px rgba(90, 24, 32, 0.2);
}

.service-card:hover i {
    background: var(--accent-gold);
    color: #ffffff;
    transform: rotateY(360deg);
    box-shadow: 0 4px 10px rgba(191, 161, 95, 0.3);
}

.service-list {
    margin-top: auto;
    padding-top: 20px;
    border-top: 1px solid rgba(191, 161, 95, 0.15);
}

.service-list li {
    margin-bottom: 10px;
    color: var(--text-body);
    font-size: 0.9rem;
}

.book-card {
    border: 1px solid rgba(191, 161, 95, 0.2);
    border-radius: 6px;
    background: var(--bg-card);
    padding: 20px;
    overflow: hidden;
    transition: var(--transition);
    margin-bottom: 30px;
    box-shadow: 0 6px 18px rgba(60, 46, 43, 0.06);
}

.book-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 24px rgba(90, 24, 32, 0.1);
    border-color: var(--accent-gold);
}

.book-cover {
    height: 320px;
    object-fit: cover;
    border-radius: 4px;
    box-shadow: 5px 5px 15px rgba(60, 46, 43, 0.2);
    transition: var(--transition);
}

.book-card:hover .book-cover {
    transform: scale(1.02);
    box-shadow: 7px 7px 20px rgba(60, 46, 43, 0.3);
}

/* Modern Bestseller 4-Column Card Design */
.modern-bestseller-card {
    background: var(--bg-card);
    border: 1px solid rgba(191, 161, 95, 0.2);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.35s cubic-bezier(0.165, 0.84, 0.44, 1);
    box-shadow: 0 8px 20px rgba(60, 46, 43, 0.06);
    height: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
}

.modern-bestseller-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 18px 36px rgba(90, 24, 32, 0.14);
    border-color: var(--accent-gold);
}

.bestseller-cover-wrapper {
    position: relative;
    overflow: hidden;
    background: rgba(191, 161, 95, 0.05);
    padding: 10px;
    text-align: center;
    border-bottom: 1px solid rgba(191, 161, 95, 0.15);
    height: 420px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.bestseller-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: linear-gradient(135deg, var(--primary-burgundy), #7a1d28);
    color: var(--accent-gold);
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 4px 10px;
    border-radius: 20px;
    border: 1px solid rgba(191, 161, 95, 0.4);
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
    z-index: 2;
}

.discount-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: linear-gradient(135deg, #d97706, #b45309);
    color: #ffffff;
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.5px;
    padding: 4px 10px;
    border-radius: 20px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
    z-index: 2;
}

.bestseller-cover {
    max-height: 100%;
    max-width: 100%;
    width: auto;
    height: 100%;
    object-fit: contain;
    object-position: center;
    border-radius: 4px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: transform 0.4s ease;
}

.modern-bestseller-card:hover .bestseller-cover {
    transform: scale(1.06);
}

/* Book Detail Page Styles */
.book-cover-large {
    max-height: 460px;
    max-width: 100%;
    object-fit: contain;
    filter: drop-shadow(0 12px 24px rgba(60, 46, 43, 0.25));
    transition: transform 0.4s ease, filter 0.4s ease;
}

.book-cover-large:hover {
    transform: translateY(-5px) scale(1.02);
    filter: drop-shadow(0 16px 32px rgba(90, 24, 32, 0.3));
}

.book-detail-cover-box {
    min-height: 520px;
}

.bestseller-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(43, 20, 26, 0.75);
    backdrop-filter: blur(3px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 3;
}

.modern-bestseller-card:hover .bestseller-overlay {
    opacity: 1;
}

.genre-tag {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--accent-gold);
    font-weight: 700;
    background: rgba(191, 161, 95, 0.12);
    padding: 2px 8px;
    border-radius: 4px;
}

.bestseller-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-header);
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.bestseller-author {
    font-size: 0.85rem;
}

.rating-stars i {
    font-size: 0.8rem;
    margin: 0 1px;
}

.bestseller-price-box {
    margin-top: 4px;
}

.discounted-price {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--primary-burgundy);
}

.original-price {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-light);
    text-decoration: line-through;
    opacity: 0.75;
}

/* Testimonials */
.testimonial-card {
    background: var(--bg-card);
    border: 1px solid rgba(191, 161, 95, 0.25);
    border-radius: 8px;
    padding: 35px 25px;
    text-align: left;
    transition: var(--transition);
    position: relative;
    box-shadow: 0 8px 24px rgba(60, 46, 43, 0.05);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.testimonial-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent-gold);
    box-shadow: 0 15px 35px rgba(90, 24, 32, 0.08);
}

.testimonial-card .quote-icon {
    font-size: 3.5rem;
    color: rgba(191, 161, 95, 0.12);
    position: absolute;
    top: 10px;
    right: 20px;
    line-height: 1;
}

.testimonial-text {
    font-style: italic;
    color: var(--text-body);
    font-size: 1.05rem;
    line-height: 1.8;
    margin-bottom: 25px;
    position: relative;
    z-index: 2;
    flex-grow: 1;
}

.testimonial-author {
    display: flex;
    align-items: center;
    border-top: 1px solid rgba(191, 161, 95, 0.15);
    padding-top: 15px;
}

.testimonial-author img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 15px;
    border: 2px solid var(--accent-gold);
    padding: 1px;
}

.testimonial-author h6 {
    margin: 0 0 2px 0;
    color: var(--primary-burgundy);
    font-weight: 700;
    font-size: 1.05rem;
}

.testimonial-author p {
    margin: 0;
    font-size: 0.8rem;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

/* Sections */
.section-padding {
    padding: 90px 0;
}

.section-title {
    margin-bottom: 50px;
    position: relative;
    padding-bottom: 20px;
    font-weight: 800;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--accent-gold);
}

/* Stats */
.stat-item h3 {
    font-size: 2.8rem;
    color: var(--primary-burgundy);
    margin-bottom: 5px;
    font-family: 'Playfair Display', serif;
}

.stat-item p {
    color: var(--text-light);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 1.5px;
}

/* Timeline */
.timeline-item {
    border-left: 2px solid var(--accent-gold);
    padding-left: 30px;
    margin-bottom: 40px;
    position: relative;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -10px;
    top: 0;
    width: 18px;
    height: 18px;
    background: var(--bg-parchment);
    border: 2px solid var(--accent-gold);
    border-radius: 50%;
}

/* Footer */
footer {
    background: var(--dark-burgundy);
    color: var(--light-gold);
    padding: 80px 0 20px;
    position: relative;
    border-top: none !important;
}

footer::before {
    content: '';
    position: absolute;
    top: -24px;
    left: 0;
    width: 100%;
    height: 25px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 30' preserveAspectRatio='none'%3E%3Cpath d='M0,15 L30,13 L60,16 L90,12 L120,17 L150,14 L180,18 L210,13 L240,16 L270,12 L300,18 L330,14 L360,17 L390,13 L420,16 L450,12 L480,18 L510,14 L540,17 L570,13 L600,18 L630,12 L660,16 L690,13 L720,17 L750,14 L780,18 L810,12 L840,16 L870,13 L900,17 L930,14 L960,18 L990,12 L1020,16 L1050,13 L1080,17 L1110,14 L1140,18 L1170,12 L1200,15 L1200,30 L0,30 Z' fill='%233c0d13'/%3E%3C/svg%3E");
    background-size: 100% 100%;
    background-repeat: no-repeat;
    transform: scaleY(-1);
    z-index: 10;
}

footer h1, footer h2, footer h3, footer h4, footer h5 {
    color: #ffffff;
}

.footer-link {
    color: rgba(235, 220, 196, 0.7);
    text-decoration: none;
    transition: var(--transition);
    display: block;
    margin-bottom: 12px;
    font-size: 0.95rem;
}

.footer-link:hover {
    color: var(--accent-gold);
    transform: translateX(3px);
}

/* Forms */
.form-control, .form-select {
    padding: 12px;
    border-radius: 4px;
    border: 1px solid var(--light-gold);
    background-color: var(--bg-card);
    color: var(--text-body);
}

.form-control:focus, .form-select:focus {
    border-color: var(--accent-gold);
    box-shadow: 0 0 0 0.25rem rgba(191, 161, 95, 0.2);
    background-color: #ffffff;
}

/* Helper Classes for Theme Compatibility */
.text-white {
    color: #ffffff !important;
}

.text-muted {
    color: var(--text-light) !important;
}

.text-dark {
    color: var(--text-body) !important;
}

.bg-dark {
    background-color: var(--primary-burgundy) !important;
}

.text-gold {
    color: var(--accent-gold) !important;
}

.bg-gold {
    background-color: var(--accent-gold) !important;
    color: #ffffff !important;
}

.bg-light {
    background-color: var(--bg-parchment-dark) !important;
}

.border-gold {
    border-color: var(--accent-gold) !important;
}

.italic {
    font-style: italic;
}

.ls-2 {
    letter-spacing: 2px;
}

/* Custom Decorative Elements matching theme4.png */
.gold-divider {
    height: 20px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 20' preserveAspectRatio='none'%3E%3Cpath d='M0,10 L42,10 L45,7 L50,10 L55,13 L58,10 L100,10' stroke='%23bfa15f' stroke-width='1.5' fill='none'/%3E%3Cpolygon points='50,6 54,10 50,14 46,10' fill='%23bfa15f'/%3E%3C/svg%3E") no-repeat center;
    background-size: contain;
    margin: 15px auto;
    width: 200px;
}

.deckled-edge-top {
    position: relative;
    padding-top: 50px !important;
}

.deckled-edge-top::before {
    content: '';
    position: absolute;
    top: -1px;
    left: 0;
    width: 100%;
    height: 25px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 30' preserveAspectRatio='none'%3E%3Cpath d='M0,15 L30,13 L60,16 L90,12 L120,17 L150,14 L180,18 L210,13 L240,16 L270,12 L300,18 L330,14 L360,17 L390,13 L420,16 L450,12 L480,18 L510,14 L540,17 L570,13 L600,18 L630,12 L660,16 L690,13 L720,17 L750,14 L780,18 L810,12 L840,16 L870,13 L900,17 L930,14 L960,18 L990,12 L1020,16 L1050,13 L1080,17 L1110,14 L1140,18 L1170,12 L1200,15 L1200,30 L0,30 Z' fill='%235a1820'/%3E%3C/svg%3E");
    background-size: 100% 100%;
    background-repeat: no-repeat;
    transform: scaleY(-1);
    z-index: 10;
}

.deckled-edge-bottom {
    position: relative;
    padding-bottom: 50px !important;
}

.deckled-edge-bottom::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 25px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 30' preserveAspectRatio='none'%3E%3Cpath d='M0,15 L30,13 L60,16 L90,12 L120,17 L150,14 L180,18 L210,13 L240,16 L270,12 L300,18 L330,14 L360,17 L390,13 L420,16 L450,12 L480,18 L510,14 L540,17 L570,13 L600,18 L630,12 L660,16 L690,13 L720,17 L750,14 L780,18 L810,12 L840,16 L870,13 L900,17 L930,14 L960,18 L990,12 L1020,16 L1050,13 L1080,17 L1110,14 L1140,18 L1170,12 L1200,15 L1200,30 L0,30 Z' fill='%235a1820'/%3E%3C/svg%3E");
    background-size: 100% 100%;
    background-repeat: no-repeat;
    z-index: 10;
}

/* Animations */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes flyFromLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.fade-up {
    opacity: 0;
}

.fade-up.animate-now {
    animation: fadeUp 1s ease-out forwards;
}

.delay-1 {
    animation-delay: 0.2s;
}

.delay-2 {
    animation-delay: 0.4s;
}

.delay-3 {
    animation-delay: 0.6s;
}

/* Animated Slide Content matching theme4.png */
.carousel-item .d-flex,
.carousel-item .hero-slide-title,
.carousel-item .hero-slide-script,
.carousel-item .hero-slide-text,
.carousel-item .hero-slide-quote {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.carousel-item .gold-divider {
    transform: scaleX(0);
    transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    transform-origin: left;
}

.carousel-item.active .d-flex {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.1s;
}

.carousel-item.active .hero-slide-title {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.2s;
}

.carousel-item.active .hero-slide-script {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.4s;
}

.carousel-item.active .gold-divider {
    transform: scaleX(1);
    transition-delay: 0.5s;
}

.carousel-item.active .hero-slide-text {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.6s;
}

.carousel-item.active .hero-slide-quote {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.8s;
}

/* Image zoom/fade transition */
.carousel-item .hero-slide-image {
    opacity: 0;
    transform: scale(0.95);
    transition: opacity 1.2s cubic-bezier(0.16, 1, 0.3, 1), transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.carousel-item.active .hero-slide-image {
    opacity: 1;
    transform: scale(1);
    transition-delay: 0.3s;
}

/* Continuous Floating and Subtle Wiggling for Feature Pillars */
@keyframes continuous-float {
    0% {
        transform: translateY(0px) rotate(0deg);
    }
    25% {
        transform: translateY(-4px) rotate(-0.5deg);
    }
    50% {
        transform: translateY(-8px) rotate(0.2deg);
    }
    75% {
        transform: translateY(-4px) rotate(-0.2deg);
    }
    100% {
        transform: translateY(0px) rotate(0deg);
    }
}

.feature-pillar {
    animation: continuous-float 5s ease-in-out infinite;
    transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1), background-color 0.3s ease, box-shadow 0.3s ease;
    border-radius: 8px;
    padding: 20px !important;
}

/* Offset animation delays for a natural, staggered floating look */
.features-row .col-lg-3:nth-child(1) .feature-pillar {
    animation-delay: 0s;
}
.features-row .col-lg-3:nth-child(2) .feature-pillar {
    animation-delay: 1.25s;
}
.features-row .col-lg-3:nth-child(3) .feature-pillar {
    animation-delay: 2.5s;
}
.features-row .col-lg-3:nth-child(4) .feature-pillar {
    animation-delay: 3.75s;
}

/* Pause animation on hover and lift card further */
.feature-pillar:hover {
    animation-play-state: paused;
    transform: translateY(-12px) scale(1.03) !important;
    background-color: rgba(255, 255, 255, 0.08) !important;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.35);
    outline: 1px solid rgba(191, 161, 95, 0.4);
}

/* Floating Animation for Mission, Vision & Values Cards */
@keyframes float-mission-card {
    0% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
    100% {
        transform: translateY(0px);
    }
}

.mission-vision-card {
    animation: float-mission-card 5.5s ease-in-out infinite;
    transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1), box-shadow 0.4s ease, background-color 0.4s ease;
}

.about-values-row .col-md-4:nth-child(1) .mission-vision-card {
    animation-delay: 0s;
}

.about-values-row .col-md-4:nth-child(2) .mission-vision-card {
    animation-delay: 1.6s;
}

.about-values-row .col-md-4:nth-child(3) .mission-vision-card {
    animation-delay: 3.2s;
}

.mission-vision-card:hover {
    animation-play-state: paused;
    transform: translateY(-14px) scale(1.02) !important;
    background-color: rgba(253, 252, 249, 0.98) !important;
    box-shadow: 0 20px 35px rgba(90, 24, 32, 0.18) !important;
}

/* Polaroid Photo Frame Styling matching reference image */
.polaroid-card {
    position: relative;
    background: #ffffff;
    padding: 16px 16px 52px 16px;
    border-radius: 12px;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.18), 0 6px 16px rgba(0, 0, 0, 0.08);
    transform: rotate(-2.8deg);
    transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1), box-shadow 0.4s ease;
    max-width: 460px;
    height: 550px;
    margin: 25px auto;
    border: 1px solid rgba(0, 0, 0, 0.06);
}

.polaroid-card:hover {
    transform: rotate(0deg) scale(1.02);
    box-shadow: 0 24px 50px rgba(90, 24, 32, 0.22);
}

/* Magenta 3D Pushpin at top center */
.polaroid-pin {
    position: absolute;
    top: -11px;
    left: 50%;
    transform: translateX(-50%);
    width: 22px;
    height: 22px;
    background: radial-gradient(circle at 35% 35%, #ff4b8b, #d81b60 60%, #880e4f 100%);
    border-radius: 50%;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.4), inset 0 -2px 4px rgba(0, 0, 0, 0.3);
    z-index: 10;
}

.polaroid-img-wrap {
    overflow: hidden;
    border-radius: 8px;
    background-color: #f5f5f5;
}

.polaroid-img {
    width: 100%;
    max-height: 400px;
    object-fit: cover;
    border-radius: 8px;
    display: block;
}

.polaroid-caption {
    position: absolute;
    bottom: 12px;
    left: 0;
    width: 100%;
    text-align: center;
    font-family: 'Pinyon Script', cursive;
    font-size: 2.2rem;
    color: var(--text-header);
    font-weight: 500;
    line-height: 1;
}