/* =========================================================
   MYNUKKAD - MAHARASHTRA FESTIVAL PAGE
   Traditional Maharashtra / Cultural Magazine Theme
========================================================= */

@import url('https://fonts.googleapis.com/css2?family=Kalam:wght@400;700&family=Playfair+Display:wght@500;600;700;800&family=Poppins:wght@300;400;500;600;700;800&family=Noto+Sans+Devanagari:wght@400;500;600;700&display=swap');


/* =========================================================
   GLOBAL
========================================================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;

    background:
        radial-gradient(
            circle at 20% 20%,
            rgba(181, 61, 42, 0.035),
            transparent 25%
        ),
        radial-gradient(
            circle at 80% 70%,
            rgba(207, 143, 37, 0.04),
            transparent 25%
        ),
        #f8f1df;

    color: #38251d;

    line-height: 1.7;
}


/* =========================================================
   HEADER
========================================================= */

.festival-header {
    background:
        linear-gradient(
            135deg,
            #4d1515,
            #681c18 50%,
            #42100f
        );

    color: #fff8e7;

    padding: 14px 0;

    border-bottom:
        5px solid #d49a2a;

    box-shadow:
        0 5px 20px rgba(64, 25, 15, 0.25);

    position: relative;

    overflow: hidden;
}

.festival-header::after {
    content: "✦  ❖  ✦  ❖  ✦  ❖  ✦";

    position: absolute;

    left: 0;
    right: 0;
    bottom: -7px;

    text-align: center;

    color: rgba(255, 210, 100, 0.25);

    letter-spacing: 18px;

    font-size: 16px;

    pointer-events: none;
}

.header-container {
    width: 92%;
    max-width: 1450px;

    margin: auto;

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 25px;

    position: relative;

    z-index: 2;
}


/* =========================================================
   BRAND
========================================================= */

.brand-section {
    min-width: 220px;

    display: flex;

    align-items: center;

    gap: 12px;
}

.brand-icon {
    width: 50px;
    height: 50px;

    display: flex;

    align-items: center;
    justify-content: center;

    background:
        #d49a2a;

    color: #4d1515;

    border-radius: 50%;

    border:
        3px solid #f5d98a;

    font-size: 25px;

    box-shadow:
        0 3px 10px rgba(0, 0, 0, 0.2);
}

.brand-section h1 {
    font-family: 'Playfair Display', serif;

    font-size: 23px;

    font-weight: 800;

    letter-spacing: 0.5px;
}

.brand-section p {
    color: #efd8a5;

    font-size: 11px;

    letter-spacing: 1px;

    text-transform: uppercase;
}


/* =========================================================
   HEADER TITLE
========================================================= */

.header-title {
    flex: 1;

    text-align: center;
}

.header-title span {
    color: #e8b84b;

    font-family:
        'Noto Sans Devanagari',
        sans-serif;

    font-size: 15px;

    font-weight: 700;

    letter-spacing: 1px;
}

.header-title h2 {
    font-family:
        'Playfair Display',
        serif;

    color: #fff5d5;

    font-size: 30px;

    margin: 0;
}

.header-title p {
    color: #e4cfa5;

    font-size: 11px;

    letter-spacing: 0.5px;
}


/* =========================================================
   BACK BUTTON
========================================================= */

.header-actions {
    min-width: 120px;

    display: flex;

    justify-content: flex-end;
}

.header-btn {
    border: 1px solid #e5bd62;

    padding: 9px 17px;

    background:
        transparent;

    color: #f8e5b3;

    border-radius: 4px;

    font-family: 'Poppins', sans-serif;

    font-size: 12px;

    font-weight: 600;

    cursor: pointer;

    transition: 0.3s;
}

.header-btn:hover {
    background: #d49a2a;

    color: #4d1515;

    transform: translateY(-2px);
}


/* =========================================================
   HERO
========================================================= */

.festival-hero {
    min-height: 470px;

    display: flex;

    align-items: center;

    justify-content: center;

    text-align: center;

    position: relative;

    overflow: hidden;

    background:
        linear-gradient(
            rgba(77, 21, 21, 0.93),
            rgba(104, 28, 24, 0.95)
        );

    border-bottom:
        1px solid #d49a2a;
}


/* Decorative sun */
.festival-hero::before {
    content: "";

    width: 330px;
    height: 330px;

    position: absolute;

    right: -80px;
    top: -80px;

    border-radius: 50%;

    border:
        2px solid rgba(225, 179, 78, 0.18);

    box-shadow:
        0 0 0 25px rgba(225, 179, 78, 0.04),
        0 0 0 50px rgba(225, 179, 78, 0.025);
}


/* Decorative diya */
.festival-hero::after {
    content: "🪔";

    position: absolute;

    left: 7%;
    bottom: 25px;

    font-size: 90px;

    opacity: 0.08;
}

.hero-content {
    width: 92%;
    max-width: 1000px;

    position: relative;

    z-index: 2;
}


/* =========================================================
   HERO DECORATIVE LINE
========================================================= */

.hero-tag {
    display: inline-block;

    color: #f1ca6a;

    font-size: 11px;

    font-weight: 700;

    letter-spacing: 3px;

    padding: 6px 20px;

    border-top:
        1px solid #d49a2a;

    border-bottom:
        1px solid #d49a2a;

    background:
        rgba(212, 154, 42, 0.06);
}


/* =========================================================
   HERO TITLE
========================================================= */

.hero-content h1 {
    font-family:
        'Playfair Display',
        serif;

    color: #fff4d3;

    font-size:
        clamp(42px, 6vw, 72px);

    line-height: 1.12;

    margin: 20px 0 15px;

    font-weight: 800;
}

.hero-content h1::after {
    content: "✦";

    display: block;

    color: #d49a2a;

    font-size: 22px;

    margin-top: 12px;
}

.hero-content p {
    max-width: 720px;

    margin: auto;

    color: #e9d9b5;

    font-size: 14px;

    line-height: 1.9;
}


/* =========================================================
   HERO STATS
========================================================= */

.hero-stats {
    margin-top: 35px;

    display: flex;

    justify-content: center;

    gap: 0;

    flex-wrap: wrap;
}

.hero-stat {
    min-width: 160px;

    padding: 12px 28px;

    border-right:
        1px solid rgba(225, 179, 78, 0.35);
}

.hero-stat:last-child {
    border-right: none;
}

.hero-stat strong {
    display: block;

    color: #e6b84f;

    font-family:
        'Playfair Display',
        serif;

    font-size: 28px;
}

.hero-stat span {
    color: #dfcda9;

    font-size: 10px;

    text-transform: uppercase;

    letter-spacing: 1.5px;
}


/* =========================================================
   MAIN
========================================================= */

.festival-container {
    width: 92%;
    max-width: 1450px;

    margin: auto;

    padding: 65px 0;
}


/* =========================================================
   SECTION HEADING
========================================================= */

.section-heading {
    margin-bottom: 28px;
}

.section-heading.center {
    text-align: center;
}

.section-label {
    color: #a52a21;

    font-size: 11px;

    font-weight: 800;

    letter-spacing: 2.5px;
}

.section-heading h2 {
    font-family:
        'Playfair Display',
        serif;

    color: #4d1515;

    font-size: 38px;

    margin: 5px 0 8px;
}

.section-heading p {
    color: #766052;

    font-size: 13px;
}


/* =========================================================
   FILTER
========================================================= */

.filter-section {
    background:
        #fffaf0;

    padding: 32px;

    border:
        1px solid #dfc991;

    border-radius: 2px;

    box-shadow:
        0 8px 25px rgba(76, 40, 15, 0.07);

    position: relative;
}


/* Traditional top border */
.filter-section::before {
    content: "◆  ◆  ◆  ◆  ◆  ◆  ◆  ◆  ◆";

    display: block;

    text-align: center;

    color: #c9932c;

    font-size: 9px;

    letter-spacing: 8px;

    margin-bottom: 15px;

    opacity: 0.55;
}

.filter-row {
    display: grid;

    grid-template-columns:
        1.5fr
        1fr
        1fr;

    gap: 20px;
}

.filter-group label {
    display: block;

    color: #5a211b;

    font-size: 12px;

    font-weight: 700;

    margin-bottom: 6px;
}

.filter-group input,
.filter-group select {
    width: 100%;

    height: 44px;

    padding: 0 13px;

    border:
        1px solid #d7c6a0;

    border-radius: 3px;

    background: #fffdf8;

    color: #49352b;

    font-family: 'Poppins', sans-serif;

    font-size: 12px;

    outline: none;

    transition: 0.3s;
}

.filter-group input:focus,
.filter-group select:focus {
    border-color: #b56b21;

    box-shadow:
        0 0 0 2px rgba(181, 107, 33, 0.08);
}


/* =========================================================
   LOADING
========================================================= */

.loading-state {
    min-height: 250px;

    display: flex;

    flex-direction: column;

    align-items: center;

    justify-content: center;

    gap: 12px;
}

.loading-state p {
    color: #765f4e;

    font-size: 12px;
}

.loader {
    width: 38px;
    height: 38px;

    border:
        3px solid #e7d9bb;

    border-top-color: #a52a21;

    border-radius: 50%;

    animation:
        spin 0.8s linear infinite;
}

@keyframes spin {

    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }

}


/* =========================================================
   FESTIVAL GRID
========================================================= */

.festival-grid {
    display: grid;

    grid-template-columns:
        repeat(3, 1fr);

    gap: 30px;
}


/* =========================================================
   FESTIVAL CARD
========================================================= */

.festival-card {
    background: #fffaf0;

    border:
        1px solid #ddc99b;

    border-radius: 3px;

    overflow: hidden;

    position: relative;

    box-shadow:
        0 8px 20px rgba(77, 35, 20, 0.07);

    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease;
}

.festival-card:hover {
    transform: translateY(-5px);

    box-shadow:
        0 15px 30px rgba(77, 35, 20, 0.13);
}


/* =========================================================
   CARD IMAGE
========================================================= */

.festival-image {
    height: 245px;

    position: relative;

    overflow: hidden;

    background:
        #eee5d2;

    display: flex;

    align-items: center;

    justify-content: center;
}

.festival-real-image {
    width: 100%;
    height: 100%;

    object-fit: cover;

    display: block;

    transition:
        transform 0.5s ease;
}

.festival-card:hover .festival-real-image {
    transform: scale(1.04);
}

.festival-image-placeholder {
    width: 100%;
    height: 100%;

    display: flex;

    align-items: center;

    justify-content: center;

    background:
        #eee3ca;

    font-size: 65px;
}


/* =========================================================
   BADGE
========================================================= */

.festival-badge {
    position: absolute;

    top: 14px;
    left: 14px;

    padding: 5px 12px;

    background:
        #a52a21;

    color: #fff4d3;

    border-radius: 2px;

    font-size: 9px;

    font-weight: 700;

    letter-spacing: 0.8px;

    text-transform: uppercase;

    box-shadow:
        0 3px 8px rgba(0, 0, 0, 0.18);
}


/* =========================================================
   CARD CONTENT
========================================================= */

.festival-card-content {
    padding: 25px;
}

.card-category {
    color: #a52a21;

    font-size: 9px;

    font-weight: 800;

    letter-spacing: 2px;

    text-transform: uppercase;
}

.festival-card h3 {
    font-family:
        'Playfair Display',
        serif;

    color: #4d1515;

    font-size: 26px;

    line-height: 1.3;

    margin: 5px 0;
}

.festival-date {
    color: #977b56;

    font-size: 11px;

    font-weight: 600;

    margin-bottom: 6px;
}

.festival-location {
    color: #765f4e;

    font-size: 11px;

    margin-bottom: 10px;
}

.festival-card-content > p {
    color: #625044;

    font-size: 12px;

    line-height: 1.8;
}


/* =========================================================
   CARD DECORATIVE LINE
========================================================= */

.festival-card-content::before {
    content: "❖";

    display: block;

    color: #d09a35;

    font-size: 12px;

    margin-bottom: 8px;
}


/* =========================================================
   HIGHLIGHTS
========================================================= */

.festival-highlights {
    display: flex;

    flex-wrap: wrap;

    gap: 7px;

    margin-top: 17px;

    padding-top: 15px;

    border-top:
        1px solid #eadfc8;
}

.festival-highlights span {
    padding: 5px 9px;

    background: #f3ead7;

    color: #704b32;

    border:
        1px solid #e2d2b0;

    border-radius: 2px;

    font-size: 9px;

    font-weight: 600;
}


/* =========================================================
   DETAILS
========================================================= */

.festival-details {
    border-top:
        1px solid #eadfc8;

    margin-top: 18px;

    padding-top: 15px;
}

.festival-details h4 {
    color: #8e241d;

    font-family:
        'Playfair Display',
        serif;

    font-size: 15px;

    margin-top: 13px;

    margin-bottom: 3px;
}

.festival-details h4:first-child {
    margin-top: 0;
}

.festival-details p {
    color: #665347;

    font-size: 11px;

    line-height: 1.8;
}


/* =========================================================
   EMPTY STATE
========================================================= */

.empty-state {
    display: none;

    background: #fffaf0;

    border:
        1px solid #ddc99b;

    padding: 70px 25px;

    text-align: center;

    border-radius: 3px;
}

.empty-icon {
    font-size: 50px;

    margin-bottom: 12px;
}

.empty-state h3 {
    font-family:
        'Playfair Display',
        serif;

    color: #4d1515;

    font-size: 27px;
}

.empty-state p {
    color: #765f4e;

    font-size: 12px;
}


/* =========================================================
   NO RESULTS
========================================================= */

.no-results {
    display: none;

    background: #fffaf0;

    border:
        1px solid #ddc99b;

    padding: 60px 20px;

    text-align: center;

    border-radius: 3px;
}

.no-results-icon {
    font-size: 42px;

    margin-bottom: 10px;
}

.no-results h3 {
    font-family:
        'Playfair Display',
        serif;

    color: #4d1515;

    font-size: 25px;
}

.no-results p {
    color: #765f4e;

    font-size: 12px;
}


/* =========================================================
   CULTURE SECTION
========================================================= */

.festival-information {
    margin-top: 90px;

    padding-top: 55px;

    border-top:
        1px solid #d9c69e;
}

.culture-grid {
    display: grid;

    grid-template-columns:
        repeat(4, 1fr);

    gap: 20px;

    margin-top: 35px;
}

.culture-card {
    background: #fffaf0;

    padding: 28px 20px;

    text-align: center;

    border:
        1px solid #ddc99b;

    border-radius: 3px;

    transition: 0.3s;
}

.culture-card:hover {
    transform: translateY(-4px);

    box-shadow:
        0 10px 25px rgba(77, 35, 20, 0.09);
}

.culture-icon {
    width: 65px;
    height: 65px;

    margin: 0 auto 14px;

    display: flex;

    align-items: center;

    justify-content: center;

    border-radius: 50%;

    background: #f3e5c5;

    border:
        1px solid #d4b875;

    font-size: 31px;
}

.culture-card h3 {
    color: #4d1515;

    font-family:
        'Playfair Display',
        serif;

    font-size: 21px;

    margin-bottom: 7px;
}

.culture-card p {
    color: #6d594a;

    font-size: 11px;

    line-height: 1.8;
}


/* =========================================================
   ADD FESTIVAL BUTTON
========================================================= */

.admin-action-section {
    display: flex;

    justify-content: center;

    margin-top: 55px;
}

.add-festival-btn {
    border:
        1px solid #8d251d;

    padding: 12px 25px;

    background:
        #a52a21;

    color: #fff4d3;

    border-radius: 3px;

    font-family: 'Poppins', sans-serif;

    font-size: 12px;

    font-weight: 700;

    cursor: pointer;

    transition: 0.3s;

    box-shadow:
        0 5px 12px rgba(91, 28, 20, 0.15);
}

.add-festival-btn:hover {
    background: #7f1e19;

    transform: translateY(-2px);
}


/* =========================================================
   FOOTER
========================================================= */

.festival-footer {
    background:
        #42100f;

    color: #fff4d3;

    padding: 45px 4% 20px;

    border-top:
        5px solid #d49a2a;
}

.footer-content {
    max-width: 1450px;

    margin: auto;

    display: grid;

    grid-template-columns:
        1fr 1fr;

    gap: 50px;
}

.footer-content h3 {
    font-family:
        'Playfair Display',
        serif;

    color: #e6b84f;

    font-size: 26px;
}

.footer-content h4 {
    color: #e6b84f;

    font-family:
        'Playfair Display',
        serif;

    font-size: 18px;

    margin-bottom: 8px;
}

.footer-content p {
    color: #d7c5a1;

    font-size: 11px;

    max-width: 500px;
}

.footer-bottom {
    max-width: 1450px;

    margin: 30px auto 0;

    padding-top: 18px;

    border-top:
        1px solid rgba(232, 184, 79, 0.2);

    text-align: center;

    color: #bca986;

    font-size: 10px;
}


/* =========================================================
   TABLET
========================================================= */

@media (max-width: 1100px) {

    .festival-grid {
        grid-template-columns:
            repeat(2, 1fr);
    }

    .culture-grid {
        grid-template-columns:
            repeat(2, 1fr);
    }

}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 750px) {

    .header-container {
        flex-direction: column;

        text-align: center;
    }

    .brand-section {
        justify-content: center;
    }

    .header-actions {
        justify-content: center;
    }

    .festival-hero {
        min-height: 450px;
    }

    .hero-content h1 {
        font-size: 40px;
    }

    .hero-content p {
        font-size: 12px;
    }

    .hero-stats {
        flex-direction: column;

        align-items: center;
    }

    .hero-stat {
        border-right: none;

        border-bottom:
            1px solid rgba(225, 179, 78, 0.25);

        width: 180px;
    }

    .hero-stat:last-child {
        border-bottom: none;
    }

    .filter-row {
        grid-template-columns: 1fr;
    }

    .festival-grid {
        grid-template-columns: 1fr;
    }

    .culture-grid {
        grid-template-columns: 1fr;
    }

    .section-heading h2 {
        font-size: 31px;
    }

    .footer-content {
        grid-template-columns: 1fr;

        text-align: center;
    }

}


/* =========================================================
   SMALL MOBILE
========================================================= */

@media (max-width: 450px) {

    .festival-container {
        width: 95%;
        padding: 30px 0;
    }

    .brand-section h1 {
        font-size: 20px;
    }

    .filter-section {
        padding: 16px 12px;
    }

    .festival-card-content {
        padding: 16px 14px;
    }

    .festival-image {
        height: 190px;
    }

    .hero-content h1 {
        font-size: clamp(24px, 7vw, 34px);
        word-break: break-word;
    }

    .header-title h2 {
        font-size: clamp(20px, 5.5vw, 25px);
    }

}