:root {
    --primary-color: #2b1d52; /* Deep Purple */
    --secondary-color: #d4af37; /* Metallic Gold */
    --accent-color: #ffffff;
    --text-color: #333;
    --white: #ffffff;
    --do-green: #2ecc71;
    --dont-red: #e74c3c;
    --header-height: 80px;
}

@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;700&family=Playfair+Display:wght@700&display=swap');

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html, body {
    overflow-x: hidden;
    max-width: 100%;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Montserrat', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: #ffffff; /* Light cream background */
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
}

/* Header & Nav */
header {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    z-index: 10000 !important;
    background: var(--white);
    height: var(--header-height);
    display: flex;
    align-items: center;
    transition: all 0.3s ease-in-out;
    box-shadow: 0 2px 15px rgba(0,0,0,0.08);
}

nav {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

@media(max-width: 768px) {
    .logo img {
        height: 60px;
    }
    .dummy-page {
        height: 300px;
        font-size: 32px;
    }
}


.logo img {
    height: 90px;
    width: auto;
    display: block;
}


.nav-links {
    display: flex;
    list-style: none;
    align-items: center;
}

.nav-links li a {
    text-decoration: none;
    color: #444;
    padding: 10px 12px;
    font-size: 18px;
    font-weight: 600;
    font-family: 'RM Neue', sans-serif;
    text-transform: capitalize;
    transition: all 0.3s ease;
    border-radius: 5px;
}

.nav-links li a:hover {
    color: var(--primary-color);
    background-color: rgba(43, 29, 82, 0.05);
}

.nav-links li a.active {
    color: var(--primary-color);
}

.menu-toggle {
    display: none;
    font-size: 28px;
    color: var(--primary-color);
    cursor: pointer;
}

/* Mobile Menu Fixes */
@media (max-width: 992px) {
    .menu-toggle {
        display: block;
        margin-right: 20px;
    }

    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--white);
        box-shadow: 0 10px 15px rgba(0,0,0,0.1);
        padding: 20px 0;
        text-align: center;
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links li {
        width: 100%;
        margin: 10px 0;
    }

    .nav-links li a {
        display: block;
        padding: 15px;
    }
}

/* Hero Section */
.hero { overflow: hidden; 
    height: 720px;
    background: url('../images/pragati5.0-banner-image.jpg') center/cover no-repeat;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--white);
    text-align: center;
    padding: 0 20px;
}

.hero h1 {
    font-family: 'Playfair Display', serif;
    font-size: 4rem;
    letter-spacing: 5px;
    margin-bottom: 10px;
    color: var(--secondary-color);
}

.hero p {
    font-size: 1.2rem;
    letter-spacing: 2px;
    text-transform: uppercase;
}

@media (max-width: 992px) {
    .hero { overflow: hidden; 
        height: 500px;
    }
    .hero h1 {
        font-size: 3rem;
    }
}

@media (max-width: 768px) {
    .hero { overflow: hidden; 
        height: 210px;
    }
    .hero h1 {
        font-size: 2.2rem;
        letter-spacing: 2px;
    }
    .hero p {
        font-size: 0.9rem;
    }
}

/* Sections */
section {
    position: relative;
    z-index: 5;
    padding: 60px 0;
    pointer-events: auto !important;
}


h2 {
    text-align: center;
    font-size: 44px;
    color: var(--primary-color);
    margin-bottom: 50px;
    position: relative;
}



/* Flight Section & Accordion Styles */
.flight-details-new {
    padding: 100px 0;
    position: relative;
    background: url('../images/flight details bg.png') center/cover no-repeat;
    min-height: 100vh;
}

.flight-details-new::before {
    content: "";
    position: absolute;
    inset: 0;
    background: url('../images/itinary-bg.png') center center/cover no-repeat;
    opacity: 0.08;
    z-index: 0;
}

.flight-container {
    max-width: 1200px;
    margin: auto;
    position: relative;
    z-index: 2;
    padding: 0 20px;
}

/* TABS */
.top-tabs {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-bottom: 40px;
    position: relative;
    z-index: 5;
}

.top-tabs .tab-btn {
    width: 160px;
    height: 50px;
    border: none;
    border-radius: 3px;
    font-size: 18px;
    font-weight: 700;
    color: #fff;
    cursor: pointer;
    background: #9c97dc;
    transition: .3s;
}

.top-tabs .tab-btn.active {
    background: #3c3794;
}

/* CONTENT */
.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

/* TITLE */
.title-section {
    text-align: center;
    margin-bottom: 30px;
}

.title-section h1 {
    font-size: 44px;
    font-weight: 700;
    color: #111;
    margin-bottom: 10px;
}

/* ACCORDION */
.accordion {
    margin-top: 28px;
}

.accordion .accordion-header {
    display: flex;
    align-items: center;
    gap: 18px;
    cursor: pointer;
    padding: 10px 0;
    user-select: none;
}

.hub-title {
    min-width: 110px;
    font-size: 22px;
    font-weight: 800;
    color: #1b1b60;
    text-transform: uppercase;
    white-space: nowrap;
}

.dashed {
    flex: 1;
    border-top: 3px dashed #ababab;
}

.plane {
        -webkit-text-stroke: 6px #ff2222;
    paint-order: stroke fill;
    font-size: 60px;
    color: #ffffff;
    transition: .4s;
}

.accordion.active .plane {
    
    color: #ff2222;
}

.accordion-body {
    max-height: 0;
    overflow: hidden;
    transition: max-height .5s ease;
}

.accordion.active .accordion-body {
    max-height: 1175px;
    margin-top: 18px;
    overflow-x: auto;
}

/* TABLE */
.table-wrapper {
    margin-bottom: 20px;
    width: 100%;
    border: 2px solid #7270a8;
    border-radius: 12px;
    overflow: hidden;
    background: #f5f5fa;
}

.table-wrapper table {
    width: 100%;
    border-collapse: collapse;
}

.table-wrapper thead {
    background: #d9d7ef;
}

.table-wrapper thead th {
    padding: 12px 10px;
    font-size: 15px;
    color: #222;
    border-bottom: 2px solid #7270a8;
    border-right: 1px solid #7270a8;
}

.table-wrapper tbody td {
    padding: 6px 6px;
    text-align: center;
    font-size: 15px;
    color: #222;
    border-right: 1px solid #9b9b9b;
}

.table-wrapper tbody tr:not(:last-child) {
    border-bottom: 1px solid #d4d4d4;
}

.table-wrapper tbody td:last-child,
.table-wrapper thead th:last-child {
    border-right: none;
}

/* Horizontal scroll wrapper — enables mobile scroll while keeping border-radius on parent */
.table-scroll-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    width: 100%;
}
.table-scroll-wrap table {
    min-width: 480px;
    width: 100%;
}

/* ============================================================
   ULTIMATE FLIPBOOK ENGINE - Professional & Realistic
   ============================================================ */

.book-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    margin: 60px auto;
    perspective: 3000px;
}

.book {
    position: relative;
    width: 380px; /* One page width */
    height: 540px;
    transition: transform 0.8s cubic-bezier(0.25, 1, 0.5, 1);
    transform-style: preserve-3d;
}

/* Cover State: Centered Front */
.book.closed {
    transform: translateX(0);
}

/* Open State: Spread (centered on spine) */
.book.open {
    transform: translateX(50%);
}

/* Last State: Centered Back */
.book.last {
    transform: translateX(100%);
}

@media(max-width: 850px) {
    .book, .book.open, .book.closed, .book.last {
        width: 320px;
        height: 460px;
        transform: translateX(0) !important;
    }
}

@media(max-width: 480px) {
    .book {
        width: 85vw;
        height: 120vw;
    }
}

.book-page {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background: #fff;
    transform-origin: left;
    transition: transform 0.8s cubic-bezier(0.645, 0.045, 0.355, 1);
    transform-style: preserve-3d;
    box-shadow: 0 1px 10px rgba(0,0,0,0.1);
    border-radius: 2px 5px 5px 2px;
}

/* Binding / Spine Effect */
.book-page::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 10px;
    height: 100%;
    background: linear-gradient(to right, rgba(0,0,0,0.2) 0%, rgba(0,0,0,0) 100%);
    z-index: 15;
}

/* Realistic Page Surface */
.book-page::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, rgba(0,0,0,0.05) 0%, rgba(0,0,0,0) 5%, rgba(0,0,0,0) 95%, rgba(0,0,0,0.02) 100%);
    pointer-events: none;
    z-index: 10;
}

.book-page .front,
.book-page .back {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    backface-visibility: hidden;
    background: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.book-page .back {
    transform: rotateY(180deg);
}

.book-page img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: fill;
    user-select: none;
}

.book-page.flipped {
    transform: rotateY(-180deg);
}

/* Mobile Single-Page Flip Animation (Realistic Turn) */
@media(max-width: 850px) {
    .book-page.mobile-single.flipped {
        transform: rotateY(-170deg) scale(0.9) !important;
        opacity: 0;
        pointer-events: none;
        transition: transform 0.8s cubic-bezier(0.645, 0.045, 0.355, 1), opacity 0.7s ease;
    }
}

/* Central Shadow when book is open */
.book::before {
    content: "";
    position: absolute;
    left: 0;
    top: -5px;
    bottom: -5px;
    width: 40px;
    background: radial-gradient(ellipse at center, rgba(0,0,0,0.2) 0%, transparent 70%);
    z-index: 50;
    pointer-events: none;
    transform: translateX(-50%);
    opacity: 0;
    transition: opacity 0.5s;
}
.book.open::before {
    opacity: 1;
}

@media(max-width: 850px) {
    .book::before { display: none; }
}

/* Controls */
.book-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 25px;
    margin-top: 45px;
}

.book-controls button {
    padding: 12px 28px;
    background: #3c3794;
    color: white;
    border: none;
    border-radius: 50px;
    font-weight: 700;
    font-size: 15px;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(60, 55, 148, 0.2);
    display: flex;
    align-items: center;
    gap: 10px;
}

@media(max-width: 600px) {
    .book-controls {
        gap: 12px;
        width: 100%;
        padding: 0 10px;
    }
    .book-controls button {
        padding: 10px 16px;
        font-size: 13px;
        flex: 1;
        justify-content: center;
    }
    .book-controls .page-info {
        font-size: 13px;
        min-width: 100px;
        padding: 8px 12px;
    }
}

.book-controls button:hover {
    background: #2a257a;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(60, 55, 148, 0.3);
}

.book-controls .page-info {
    font-size: 16px;
    color: #333;
    font-weight: 700;
    min-width: 140px;
    text-align: center;
    background: #f0f0f8;
    padding: 10px 20px;
    border-radius: 30px;
}

@media(max-width:1280px) {
    .flight-container { width: 95%; }
    .table-wrapper { overflow: visible; }
    .table-scroll-wrap { overflow-x: auto; }
    .table-scroll-wrap table,
    .table-wrapper table { min-width: 1150px; }
    .hub-title { min-width: 190px; font-size: 18px; }
    .title-section h1 { font-size: 42px; }
}

@media(max-width: 768px) {
    .gallery-section { padding-left: 20px !important; padding-right: 20px !important; }
    .top-tabs {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px;
    }
    .top-tabs .tab-btn {
        flex: 1 1 calc(50% - 10px);
        max-width: none;
    }
    .hub-title {
        min-width: auto;
        font-size: 16px;
    }
    .plane {
        font-size: 32px;
        -webkit-text-stroke: 2px #ff2222;
    }
    .title-section h1 {
        font-size: 32px;
    }
    /* Flight table scroll on mobile */
    .table-scroll-wrap {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    .table-scroll-wrap table,
    .table-wrapper table { min-width: 580px; }
    /* Scroll hint shadow */
    .table-scroll-wrap::after {
        content: '';
        position: absolute;
        top: 0; right: 0; bottom: 0;
        width: 28px;
        background: linear-gradient(to right, transparent, rgba(114,112,168,0.15));
        pointer-events: none;
        border-radius: 0 12px 12px 0;
    }
    .table-wrapper { position: relative; }
}


/* Group Cards in Itinerary Tab */
#itinerary-content {
    position: relative;
    overflow: hidden;
}

.itinerary-tab-content-inner {
    position: relative;
    overflow: hidden;
}

.bg-itinerary-shape {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(135deg, rgba(255,255,255,0.4) 10%, transparent 10%),
        linear-gradient(225deg, rgba(255,255,255,0.35) 10%, transparent 10%);
    background-size: 320px 320px;
    opacity: .3;
    z-index: 0;
    pointer-events: none;
}

.group-cards-wrapper {
    width: 100%;
    max-width: 900px;
    margin: 30px auto;
    display: flex;
    justify-content: center;
    gap: 20px;
    position: relative;
    z-index: 2;
    padding: 0 10px;
}

.group-cards-wrapper .group-card {
    width: 45%;
    max-width: 420px;
}

.group-cards-wrapper .group-title {
    text-align: center;
    font-size: 20px;
    font-weight: 700;
    color: #2D348B;
    margin-bottom: 10px;
    letter-spacing: 0.2px;
}

.group-cards-wrapper .image-box {
    width: 100%;
    height: auto;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.group-cards-wrapper .image-box img {
    width: 100%;
    height: auto;
    display: block;
}

@media(max-width:768px) {
    .group-cards-wrapper {
        flex-direction: column;
        align-items: center;
        gap: 40px;
    }
    .group-cards-wrapper .group-card {
        width: 100%;
        max-width: 320px;
    }
    .group-cards-wrapper .group-title {
        font-size: 18px;
    }
}


.dos-donts-section { overflow: hidden; 
     
    background: #ddd8cf url('../images/dos-and-donts-bg.webp') no-repeat bottom center;
    background-size: cover;
    padding: 100px 0;
    position: relative;
    overflow: hidden;
}

.dos-donts-section .dd-wrapper {
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
}

/* TITLE */
.dos-donts-section .title {
    text-align: center;
    font-size: 44px;
    font-weight: 700;
    color: #1c1c1c;
    margin-bottom: 12px;
    position: relative;
    z-index: 2;
}

.dos-donts-section .cards {
    margin-top: 100px;
    padding-top: 40px;
    display: flex;
    justify-content: center;
    gap: 32px;
    position: relative;
    z-index: 2;
    flex-wrap: wrap;
}

.secondary-cards {
    margin-top: 100px !important;
}

.dos-donts-section .dd-secondary-header {
    text-align: center;
    margin-top: 80px;
}

.dos-donts-section .secondary-title {
    font-size: 44px;
    font-weight: 700;
    color: #030303;
    margin-bottom: 8px;
}

.dos-donts-section .secondary-subtitle {
    font-size: 24px;
    font-weight: 500;
    color: #000000;
}

/* CARD */
.dos-donts-section .dd-card {
    width: 600px;
    background: #ffffff;
    border: 2px solid #2f358f;
    border-radius: 16px;
    padding: 100px 28px 28px;
    position: relative;
    min-height: 400px;
    flex: 1 1 600px;
    max-width: 680px;
}

.secondary-cards .dd-card {
    flex: 1 1 400px;
    max-width: 440px;
    min-height: 380px;
}

.dos-donts-section .dd-card h3 {
    text-align: center;
    font-size: 24px;
    margin-bottom: 16px;
    color: #2f358f;
    font-weight: 700;
}

/* TOP ICON */
.dos-donts-section .circle-wrap {
    position: absolute;
    top: -80px;
    left: 50%;
    transform: translateX(-50%);
    width: 150px;
    height: 150px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f5f5f5;
}

.dos-donts-section .do .circle-wrap { border: 2px solid #63d29a; }
.dos-donts-section .dont .circle-wrap { border: 2px solid #ef2d2d; }
.dos-donts-section .temple .circle-wrap { border: 2px solid #f39c12; }
.dos-donts-section .casual .circle-wrap { border: 2px solid #3498db; }
.dos-donts-section .carry .circle-wrap { border: 2px solid #9b59b6; }

.dos-donts-section .circle-inner {
    width: 125px;
    height: 125px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
}

.dos-donts-section .do .circle-inner { border: 8px solid #63d29a; }
.dos-donts-section .dont .circle-inner { border: 8px solid #ef2d2d; }
.dos-donts-section .temple .circle-inner { border: 8px solid #f39c12; }
.dos-donts-section .casual .circle-inner { border: 8px solid #3498db; }
.dos-donts-section .carry .circle-inner { border: 8px solid #9b59b6; }

.dos-donts-section .icon {
   width: 70px;
    height: 70px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 34px;
    font-weight: 700;
}

.dos-donts-section .do .icon { border: 3px solid #63d29a; color: #63d29a; }
.dos-donts-section .dont .icon { border: 3px solid #ef2d2d; color: #ef2d2d; }
.dos-donts-section .temple .icon { border: 3px solid #f39c12; color: #f39c12; }
.dos-donts-section .casual .icon { border: 3px solid #3498db; color: #3498db; }
.dos-donts-section .carry .icon { border: 3px solid #9b59b6; color: #9b59b6; }

/* LIST */
.dos-donts-section ul { list-style: none; }

.dos-donts-section li {
    position: relative;
    padding-left: 26px;
    margin-bottom: 8px;
    color: #121212;
    font-size: 18px;
    line-height: 1.45;
    font-weight: 500;
}

.dos-donts-section li::before {
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    content: "\f14a"; /* fa-square-check */
    position: absolute;
    left: 0;
    top: 0;
    font-size: 18px;
}

.dos-donts-section .do li::before {
    color: #63d29a;
}

.dos-donts-section .dont li::before {
    color: #ef2d2d;
}

.dos-donts-section .temple li::before {
    color: #f39c12;
}

.dos-donts-section .casual li::before {
    color: #3498db;
}

.dos-donts-section .carry li::before {
    color: #9b59b6;
}

.dos-donts-section .sub { margin-top: 10px; margin-left: 10px; }
.dos-donts-section .sub li { margin-bottom: 8px; font-size: 18px; }

@media(max-width: 950px) {
    .dos-donts-section .cards {
        flex-direction: column;
        align-items: center;
        margin-top: 100px;
        gap: 120px;
    }
    .secondary-cards {
        margin-top: 120px !important;
    }
    .dos-donts-section .dd-card {
        width: 90%;
        max-width: 600px;
        flex: none;
        min-height: auto;
    }
    .secondary-cards .dd-card {
        max-width: 600px;
        min-height: auto;
    }
}

@media(max-width: 768px) {
    .dos-donts-section { overflow: hidden; 
        padding: 60px 0;
    }
    .dos-donts-section .title {
        font-size: 32px;
    }
    .dos-donts-section .secondary-title {
        font-size: 28px;
        padding: 0 15px;
    }
    .dos-donts-section .secondary-subtitle {
        font-size: 17px;
        padding: 0 20px;
    }
    .dos-donts-section .dd-card {
        padding: 80px 20px 20px;
    }
    .dos-donts-section .dd-card h3 {
        font-size: 24px;
    }
    .dos-donts-section .circle-wrap {
        width: 120px;
        height: 120px;
        top: -60px;
    }
    .dos-donts-section .circle-inner {
        width: 100px;
        height: 100px;
    }
    .dos-donts-section .icon {
        width: 50px;
        height: 50px;
        font-size: 28px;
    }
    .dos-donts-section li {
        font-size: 16px;
    }
    .dos-donts-section .sub li {
        font-size: 15px;
    }
}

/* Contact Modal */

.footer-section { overflow: hidden; 
    overflow: hidden;
    background: linear-gradient(rgb(0 0 0 / 51%), rgb(0 0 0 / 55%)), url(../images/footer-bg.jpg); /* Note: Ensure this image exists */
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
  
}


.footer-section .contact-btn {
    width: 270px;
    height: 50px;
    border: none;
    border-radius: 4px;
    background: #f2efed;
    color: #3f2c1d;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    transition: .3s;
    margin-bottom: 45px;
}
.footer-section .contact-btn:hover {
    transform: translateY(-3px);
}

/* POLYGON OVERLAY */
.footer-section::before {
    content: "";
    position: absolute;
    inset: 0;
    background: 
        linear-gradient(135deg, rgba(255,255,255,0.10) 10%, transparent 10%),
        linear-gradient(45deg, rgba(255,255,255,0.05) 10%, transparent 10%),
        linear-gradient(-45deg, rgba(255,255,255,0.04) 10%, transparent 10%);
    background-size: 240px 240px;
    mix-blend-mode: screen;
    opacity: .55;
}

.footer-section .content {
    width: 100%;
    max-width: 1400px;
    position: relative;
    z-index: 2;
    text-align: center;
}

/* LOGO & DIVIDER */
.footer-section .footer-logo {
    margin-bottom: 20px;
}

.footer-section .footer-logo-img {
    max-width: 450px;
    height: auto;
}

@media(max-width: 768px) {
    .footer-section .footer-logo-img {
        max-width: 250px;
    }
}

.footer-section .footer-divider {
    margin-bottom: 20px;
}

.footer-section .footer-divider-img {
    max-width: 600px;
    height: auto;
}

/* SOCIAL ICONS */
.footer-section .socials {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 35px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.footer-section .socials a {
    width: 60px;
    height: 60px;
    border: 3px solid rgba(255,255,255,.85);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #fff;
    font-size: 30px;
    text-decoration: none;
    transition: .35s;
    backdrop-filter: blur(2px);
}

.footer-section .socials a:hover {
    background: #fff;
    color: #111;
    transform: translateY(-5px);
}

/* MENU */
.footer-section .menu {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 24px;
    margin-bottom: 45px;
}

.footer-section .menu a {
    color: #fff;
    text-decoration: none;
    font-size: 20px;
    font-weight: 400;
    transition: .3s;
}

.footer-section .menu a:hover { opacity: .7; }

.footer-section .dot {
    color: #fff;
    font-size: 14px;
}

/* COPYRIGHT */
.footer-section .copyright {
    color: #fff;
    font-size: 20px;
    font-weight: 400;
}


/* Weather & Currency Section Styles */
.widgets-section { overflow: hidden;  
        padding: 80px 0px 170px 0px;
    background: linear-gradient(rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.1)), url('../images/weather-bg.webp');
    background-size: cover;
    background-position: center;

    position: relative;
}

.widgets-section .widget-container {
    max-width: 1200px;
    margin: auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    align-items: stretch;
}

.widgets-section .widget-group {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.widgets-section .widget-title {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 20px;
    color: #1b2c59;
    padding-left: 5px;
}

.widgets-section .widget-card { overflow: hidden; min-width: 0;
    background: #fff;
    border-radius: 22px;
    padding: 20px;
    border: 2px solid #2f358f;
    box-shadow: 0 8px 25px rgba(0,0,0,0.06);
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.widgets-section .widget-card:not(.weather-card) {
    justify-content: center;
}

/* WEATHER — redesigned with animated sky */
.widgets-section .weather-card {
    padding: 0 !important;
    overflow: hidden;
}

/* --- Animated Sky --- */

.wx-hr-item {
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.wx-hr-item:hover {
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}
.wx-day-row {
    transition: transform 0.2s ease, background 0.2s ease;
}
.wx-day-row:hover {
    transform: scale(1.02);
    background: #f8faff;
}

/* PDF Viewer */
.pdf-container {
    width: 100%;
    height: 800px;
    max-height: 90vh;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

@media(max-width: 768px) {
    .pdf-container {
        height: 500px;
    }
}

/* ============================================================
   WEATHER SKY — Realistic Animations
   ============================================================ */

/* Sky container & gradients */
.wx-sky {
    position: relative;
    height: 260px;
    overflow: hidden;
    transition: background 1.8s ease;
    background: linear-gradient(180deg, #0864b0 0%, #1a8de8 40%, #56b0e0 80%, #a8d8f0 100%);
}
.wx-sky.sky-day         { background: linear-gradient(180deg, #0864b0 0%, #1a8de8 40%, #56b0e0 80%, #a8d8f0 100%); }
.wx-sky.sky-night       { background: linear-gradient(180deg, #010308 0%, #040b1c 35%, #081428 65%, #0d1d38 100%); }
.wx-sky.sky-cloudy-day  { background: linear-gradient(180deg, #4a6880 0%, #7a9db8 55%, #a8c4d8 85%, #c8dae8 100%); }
.wx-sky.sky-cloudy-night{ background: linear-gradient(180deg, #060a14 0%, #0e1524 55%, #181e30 85%, #1e2840 100%); }
.wx-sky.sky-rainy       { background: linear-gradient(180deg, #1a1e28 0%, #252c40 45%, #303850 80%, #3a4460 100%); }
.wx-sky.sky-thunder     { background: linear-gradient(180deg, #080810 0%, #110c1e 40%, #1a1030 70%, #0e0a20 100%); }
.wx-sky.sky-snow        { background: linear-gradient(180deg, #607890 0%, #8aaaba 50%, #b8d0dc 80%, #d8eaf0 100%); }
.wx-sky.sky-fog         { background: linear-gradient(180deg, #8898a8 0%, #a0b0be 40%, #c0ccd8 75%, #d8e4ec 100%); }

/* ── Sun ── */
@keyframes wxSunRise   { from { transform: translateY(8px); } to { transform: translateY(-4px); } }
@keyframes wxSunSpin   { to   { transform: rotate(360deg); } }
@keyframes wxSunGlow   {
    0%   { box-shadow: 0 0 28px 10px rgba(255,200,50,.55), 0 0 70px 25px rgba(255,160,0,.2); }
    100% { box-shadow: 0 0 50px 20px rgba(255,220,60,.8),  0 0 110px 45px rgba(255,140,0,.35); }
}

.wx-sun {
    position: absolute;
    top: 20px; right: 50px;
    width: 96px; height: 96px;
    display: none; align-items: center; justify-content: center;
    animation: wxSunRise 6s ease-in-out infinite alternate;
    transition: opacity .8s, top .8s ease, left .8s ease;
    z-index: 4;
}
.wx-sun-rays {
    position: absolute;
    width: 96px; height: 96px;
    border-radius: 50%;
    background: conic-gradient(
        transparent 0deg,   rgba(255,230,80,.7) 6deg,  transparent 12deg,
        transparent 30deg,  rgba(255,230,80,.7) 36deg, transparent 42deg,
        transparent 60deg,  rgba(255,230,80,.7) 66deg, transparent 72deg,
        transparent 90deg,  rgba(255,230,80,.7) 96deg, transparent 102deg,
        transparent 120deg, rgba(255,230,80,.7) 126deg,transparent 132deg,
        transparent 150deg, rgba(255,230,80,.7) 156deg,transparent 162deg,
        transparent 180deg, rgba(255,230,80,.7) 186deg,transparent 192deg,
        transparent 210deg, rgba(255,230,80,.7) 216deg,transparent 222deg,
        transparent 240deg, rgba(255,230,80,.7) 246deg,transparent 252deg,
        transparent 270deg, rgba(255,230,80,.7) 276deg,transparent 282deg,
        transparent 300deg, rgba(255,230,80,.7) 306deg,transparent 312deg,
        transparent 330deg, rgba(255,230,80,.7) 336deg,transparent 342deg,
        transparent 360deg
    );
    filter: blur(1.5px);
    animation: wxSunSpin 18s linear infinite;
    transform-origin: center;
}
.wx-sun-core {
    position: absolute;
    width: 66px; height: 66px;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 32%,
        #fffde7 0%, #fff176 18%, #ffee58 35%,
        #ffd600 55%, #ffab00 75%, #ff6d00 100%);
    box-shadow:
        inset -4px -4px 10px rgba(180,60,0,.3),
        0 0 28px 10px rgba(255,200,50,.55),
        0 0 70px 25px rgba(255,160,0,.2);
    z-index: 2;
    animation: wxSunGlow 3.5s ease-in-out infinite alternate;
}

/* ── Moon ── */
@keyframes wxMoonFloat {
    from { transform: translateY(0px) rotate(-5deg); }
    to   { transform: translateY(-6px) rotate(5deg); }
}
@keyframes wxMoonGlow {
    from { filter: drop-shadow(0 0 8px rgba(200,220,255,.5)); }
    to   { filter: drop-shadow(0 0 20px rgba(180,210,255,.9)); }
}

.wx-moon {
    position: absolute;
    top: 20px; right: 50px;
    width: 72px; height: 72px;
    display: none; align-items: center; justify-content: center;
    animation: wxMoonFloat 5s ease-in-out infinite alternate, wxMoonGlow 4s ease-in-out infinite alternate;
    transition: top .8s ease, left .8s ease;
    z-index: 4;
}
.wx-moon-core {
    width: 62px; height: 62px;
    border-radius: 50%;
    background: radial-gradient(circle at 38% 35%,
        #fffffc 0%, #f5f5e8 25%, #dfe0cc 50%, #b0b09a 80%, #8a8a78 100%);
    box-shadow:
        inset -12px -4px 0 0 rgba(10,15,40,.85),
        inset -5px -2px 8px rgba(0,0,0,.25),
        0 0 18px 6px rgba(180,210,255,.3);
    position: relative;
    overflow: hidden;
}
.wx-moon-core::before {
    content: '';
    position: absolute; inset: 0;
    background-image:
        radial-gradient(circle at 22% 38%, rgba(0,0,0,.12) 0%, transparent 12%),
        radial-gradient(circle at 62% 22%, rgba(0,0,0,.10) 0%, transparent 16%),
        radial-gradient(circle at 72% 68%, rgba(0,0,0,.09) 0%, transparent 13%),
        radial-gradient(circle at 35% 78%, rgba(0,0,0,.10) 0%, transparent 9%),
        radial-gradient(circle at 50% 50%, rgba(255,255,255,.06) 0%, transparent 40%);
}

/* ── Stars ── */
.wx-stars {
    position: absolute; inset: 0;
    pointer-events: none; z-index: 1;
}
.wx-star {
    position: absolute;
    background: #fff;
    border-radius: 50%;
    animation: wxStarTwinkle var(--dur,2.2s) ease-in-out infinite alternate;
    animation-delay: var(--delay,0s);
    box-shadow: 0 0 3px 1px rgba(255,255,255,.7);
}
@keyframes wxStarTwinkle {
    0%   { opacity: .08; transform: scale(.7); }
    60%  { opacity: .8; }
    100% { opacity: 1;  transform: scale(1.25); box-shadow: 0 0 6px 2px rgba(200,220,255,.9); }
}

/* Shooting stars */
.wx-shooting-star {
    position: absolute;
    height: 1.5px;
    border-radius: 2px;
    background: linear-gradient(90deg, rgba(255,255,255,0) 0%, rgba(255,255,255,1) 55%, rgba(200,230,255,.4) 100%);
    animation: wxShoot var(--dur,4s) ease-in infinite;
    animation-delay: var(--delay,0s);
    opacity: 0;
    transform-origin: right center;
}
@keyframes wxShoot {
    0%   { opacity: 0;  transform: rotate(-30deg) translateX(0); }
    8%   { opacity: 1; }
    60%  { opacity: 0; }
    100% { opacity: 0;  transform: rotate(-30deg) translateX(-380px); }
}

/* ── Clouds ── */
.wx-clouds-wrap {
    position: absolute; inset: 0;
    pointer-events: none; z-index: 3;
}
.wx-cloud {
    position: absolute;
    border-radius: 50px;
    animation: wxCloudDrift linear infinite;
    will-change: transform;
}
@keyframes wxCloudDrift {
    from { transform: translateX(calc(100vw + 200px)) scaleX(var(--sc,1)); }
    to   { transform: translateX(-320px) scaleX(var(--sc,1)); }
}

/* Day clouds — white fluffy */
.wx-sky:not(.sky-rainy):not(.sky-thunder) .wx-cloud {
    background: radial-gradient(ellipse at 50% 80%, #f0f4ff 0%, #ffffff 60%);
    box-shadow: 0 8px 20px rgba(0,0,0,.08), inset 0 -6px 10px rgba(150,170,200,.12);
}
/* Rain/thunder clouds — dark grey */
.wx-sky.sky-rainy .wx-cloud,
.wx-sky.sky-thunder .wx-cloud {
    background: radial-gradient(ellipse at 50% 80%, #555 0%, #888 60%);
    box-shadow: 0 8px 24px rgba(0,0,0,.4), inset 0 -8px 14px rgba(0,0,0,.35);
    opacity: .88;
}

.wx-cloud::before, .wx-cloud::after {
    content: '';
    position: absolute;
    background: inherit;
    border-radius: 50%;
}

/* Large cloud */
.wx-c1 {
    width: 120px; height: 38px;
    top: 28px;
    animation-duration: 42s;
    --sc: 1;
}
.wx-c1::before { width: 56px; height: 56px; top: -28px; left: 18px; }
.wx-c1::after  { width: 72px; height: 72px; top: -40px; right: 20px; }

/* Medium cloud */
.wx-c2 {
    width: 90px; height: 30px;
    top: 90px;
    animation-duration: 32s;
    animation-delay: -10s;
    --sc: 1;
    opacity: .75;
}
.wx-c2::before { width: 40px; height: 40px; top: -20px; left: 14px; }
.wx-c2::after  { width: 52px; height: 52px; top: -30px; right: 14px; }

/* Small cloud */
.wx-c3 {
    width: 70px; height: 22px;
    top: 140px;
    animation-duration: 58s;
    animation-delay: -25s;
    --sc: 1;
    opacity: .6;
}
.wx-c3::before { width: 28px; height: 28px; top: -14px; left: 10px; }
.wx-c3::after  { width: 38px; height: 38px; top: -22px; right: 10px; }

/* Extra cloud for cloudy states */
.wx-c4 {
    width: 100px; height: 32px;
    top: 60px;
    animation-duration: 50s;
    animation-delay: -35s;
    --sc: 1;
    opacity: .65;
    display: none;
}
.wx-c4::before { width: 44px; height: 44px; top: -22px; left: 12px; }
.wx-c4::after  { width: 58px; height: 58px; top: -33px; right: 12px; }
.wx-sky.sky-cloudy-day .wx-c4,
.wx-sky.sky-cloudy-night .wx-c4,
.wx-sky.sky-rainy .wx-c4,
.wx-sky.sky-thunder .wx-c4 { display: block; }

/* ── Rain ── */
.wx-rain-wrap {
    position: absolute; inset: 0;
    pointer-events: none; display: none;
    z-index: 5;
}
.wx-raindrop {
    position: absolute;
    width: 1.5px;
    border-radius: 0 0 3px 3px;
    background: linear-gradient(180deg,
        rgba(174,214,241,0) 0%,
        rgba(174,214,241,.85) 60%,
        rgba(255,255,255,.4) 100%);
    animation: wxRainFall linear infinite;
    transform: rotate(12deg);
    transform-origin: top center;
}
@keyframes wxRainFall {
    0%   { transform: rotate(12deg) translateY(-40px); opacity: 0; }
    15%  { opacity: .85; }
    85%  { opacity: .6; }
    100% { transform: rotate(12deg) translateY(220px); opacity: 0; }
}

/* ── Lightning ── */
.wx-lightning {
    position: absolute; inset: 0;
    pointer-events: none; display: none;
    z-index: 6;
}
.wx-lightning::before {
    content: '';
    position: absolute;
    left: 55%; top: 0;
    width: 3px; height: 90px;
    background: linear-gradient(180deg,
        rgba(255,255,200,.0) 0%,
        rgba(255,255,180,1) 40%,
        rgba(255,240,100,.8) 70%,
        rgba(255,255,200,.0) 100%);
    clip-path: polygon(
        20% 0%, 60% 0%, 35% 45%,
        65% 45%, 0% 100%, 30% 55%,
        5% 55%
    );
    width: 22px; height: 85px;
    filter: blur(.5px) drop-shadow(0 0 6px rgba(255,255,150,.9));
    animation: wxBoltFlash 6s ease-in-out infinite;
    opacity: 0;
}
@keyframes wxBoltFlash {
    0%,78%,86%,92%,100% { opacity: 0; }
    80%,88%             { opacity: 1; }
    84%                 { opacity: .4; }
}
.wx-lightning-bg {
    position: absolute; inset: 0;
    animation: wxLightBg 6s ease-in-out infinite;
}
@keyframes wxLightBg {
    0%,78%,90%,100% { background: transparent; }
    80%,86%         { background: rgba(255,255,200,.12); }
}

/* ── Sky-state visibility rules ── */
.wx-sky.sky-day .wx-sun              { display: flex; }
.wx-sky.sky-day .wx-moon             { display: none; }
.wx-sky.sky-day .wx-stars            { display: none; }
.wx-sky.sky-day .wx-c1               { opacity: .4; }
.wx-sky.sky-day .wx-c2,
.wx-sky.sky-day .wx-c3               { opacity: .25; }

.wx-sky.sky-night .wx-sun            { display: none; }
.wx-sky.sky-night .wx-moon           { display: flex; }
.wx-sky.sky-night .wx-c1             { opacity: .18; }
.wx-sky.sky-night .wx-c2,
.wx-sky.sky-night .wx-c3             { opacity: .12; }

.wx-sky.sky-cloudy-day .wx-sun       { display: flex; opacity: .45; }
.wx-sky.sky-cloudy-day .wx-moon      { display: none; }
.wx-sky.sky-cloudy-day .wx-stars     { display: none; }

.wx-sky.sky-cloudy-night .wx-sun     { display: none; }
.wx-sky.sky-cloudy-night .wx-moon    { display: flex; opacity: .5; }

.wx-sky.sky-rainy .wx-sun            { display: none; }
.wx-sky.sky-rainy .wx-moon           { display: none; }
.wx-sky.sky-rainy .wx-stars          { display: none; }
.wx-sky.sky-rainy .wx-rain-wrap      { display: block; }

.wx-sky.sky-thunder .wx-sun          { display: none; }
.wx-sky.sky-thunder .wx-moon         { display: none; }
.wx-sky.sky-thunder .wx-stars        { display: none; }
.wx-sky.sky-thunder .wx-rain-wrap    { display: block; }
.wx-sky.sky-thunder .wx-lightning    { display: block; }
.wx-sky.sky-thunder .wx-lightning-bg { display: block; }

/* ── Snow ── */
.wx-snow-wrap {
    position: absolute; inset: 0;
    pointer-events: none; display: none; z-index: 5;
}
.wx-snowflake {
    position: absolute;
    border-radius: 50%;
    background: rgba(255,255,255,.9);
    box-shadow: 0 0 4px 1px rgba(255,255,255,.5);
    animation: wxSnowFall linear infinite;
}
@keyframes wxSnowFall {
    0%   { transform: translateY(-10px) translateX(0)   rotate(0deg); opacity: 0; }
    8%   { opacity: .9; }
    85%  { opacity: .7; }
    100% { transform: translateY(220px) translateX(var(--drift,18px)) rotate(320deg); opacity: 0; }
}
.wx-sky.sky-snow .wx-snow-wrap  { display: block; }
.wx-sky.sky-snow .wx-sun        { display: none; }
.wx-sky.sky-snow .wx-moon       { display: none; }
.wx-sky.sky-snow .wx-stars      { display: none; }
.wx-sky.sky-snow .wx-rain-wrap  { display: none; }

/* ── Fog ── */
.wx-fog-wrap {
    position: absolute; inset: 0;
    pointer-events: none; display: none; z-index: 4;
}
.wx-fog-layer {
    position: absolute;
    left: -20%; width: 140%; height: 55px;
    border-radius: 50%;
    background: rgba(210,220,228,.55);
    filter: blur(14px);
    animation: wxFogDrift linear infinite alternate;
}
@keyframes wxFogDrift {
    from { transform: translateX(-5%) scaleX(1); }
    to   { transform: translateX(5%) scaleX(1.04); }
}
.wx-sky.sky-fog .wx-fog-wrap { display: block; }
.wx-sky.sky-fog .wx-sun      { display: none; }
.wx-sky.sky-fog .wx-rain-wrap { display: none; }
.wx-sky.sky-fog .wx-stars    { display: none; }

/* ── Horizon glow ── */
.wx-horizon {
    position: absolute; bottom: 0; left: 0; right: 0;
    height: 44px; pointer-events: none; z-index: 2;
    transition: background 1.5s ease;
}
.wx-sky.sky-day .wx-horizon          { background: linear-gradient(0deg, rgba(255,185,60,.38) 0%, transparent 100%); }
.wx-sky.sky-night .wx-horizon        { background: linear-gradient(0deg, rgba(10,20,80,.55) 0%, transparent 100%); }
.wx-sky.sky-cloudy-day .wx-horizon   { background: linear-gradient(0deg, rgba(150,175,200,.3) 0%, transparent 100%); }
.wx-sky.sky-cloudy-night .wx-horizon { background: linear-gradient(0deg, rgba(8,15,50,.4) 0%, transparent 100%); }
.wx-sky.sky-rainy .wx-horizon        { background: linear-gradient(0deg, rgba(20,30,60,.5) 0%, transparent 100%); }
.wx-sky.sky-thunder .wx-horizon      { background: linear-gradient(0deg, rgba(10,5,30,.6) 0%, transparent 100%); }
.wx-sky.sky-snow .wx-horizon         { background: linear-gradient(0deg, rgba(200,220,235,.4) 0%, transparent 100%); }
.wx-sky.sky-fog .wx-horizon          { background: linear-gradient(0deg, rgba(200,215,225,.6) 0%, transparent 100%); }

/* ── Lightning bg flash ── */
.wx-lightning-bg {
    position: absolute; inset: 0;
    pointer-events: none; display: none; z-index: 6;
    animation: wxLightBg 6s ease-in-out infinite;
}
@keyframes wxLightBg {
    0%,77%,90%,100% { background: transparent; }
    80%,85%         { background: rgba(220,215,255,.14); }
}

/* City badge */
.wx-city-badge {
    position: absolute; bottom: 10px; left: 14px;
    background: rgba(255,255,255,.22);
    backdrop-filter: blur(6px);
    color: #fff;
    font-size: 15px; font-weight: 700;
    padding: 5px 16px; border-radius: 40px;
    letter-spacing: .5px;
    text-shadow: 0 1px 4px rgba(0,0,0,.35);
}

/* --- Main temp row --- */
.wx-main { 
    padding: 14px 20px 12px;
    border-bottom: 1px solid #eef0f8;
}
.wx-temp-row { display: flex; align-items: center; gap: 18px; }
.wx-temp {
    font-size: 64px; font-weight: 200;
    color: #111; line-height: 1; letter-spacing: -2px;
}
.wx-condition { font-size: 20px; font-weight: 700; color: #1b2c59; }
.wx-feels { font-size: 13px; color: #888; margin-top: 4px; }
.wx-sun-times {
    display: flex; gap: 22px; margin-top: 10px;
    font-size: 13px; color: #555;
}
.wx-sun-times i { margin-right: 4px; }
.wx-sun-times .fa-sun  { color: #f0a500; }
.wx-sun-times .fa-moon { color: #8888cc; }

/* --- Details grid --- */
.wx-details {
    display: grid; grid-template-columns: repeat(3, 1fr);
    border-bottom: 1px solid #eef0f8;
}
.wx-det-box {
    display: flex; flex-direction: column;
    align-items: center; padding: 12px 6px; gap: 3px;
    border-right: 1px solid #eef0f8;
}
.wx-det-box:nth-child(3n) { border-right: none; }
.wx-det-box i { font-size: 17px; color: #2f358f; }
.wx-det-box b { font-size: 14px; font-weight: 700; color: #111; }
.wx-det-box small { font-size: 11px; color: #555; font-weight: 500; }

/* --- Hourly --- */
.wx-label {
    padding: 10px 20px 4px;
    font-size: 11px; font-weight: 700;
    letter-spacing: 1px; text-transform: uppercase; color: #2f358f;
}
.wx-hourly-wrap { 
    width: 100%;
    overflow-x: auto; 
    white-space: nowrap;
    padding: 0 20px 15px; 
    scrollbar-width: thin; 
    -webkit-overflow-scrolling: touch;
}
.wx-hourly { 
    display: flex; 
    gap: 12px; 
    width: max-content;
    padding-bottom: 5px;
}
.wx-hr-item {
    display: flex; flex-direction: column;
    align-items: center; gap: 4px;
    min-width: 50px; background: #f7f9fc;
    border-radius: 14px; padding: 9px 6px;
    font-size: 12px; color: #333;
}
.wx-hr-item.wx-hr-now { background: #2f358f; color: #fff; }
.wx-hr-time  { font-size: 11px; font-weight: 700; }
.wx-hr-item i { font-size: 16px; color: #ffb300; }
.wx-hr-item.wx-hr-now i { color: #ffe88a; }
.wx-hr-temp  { font-size: 14px; font-weight: 700; }
.wx-hr-rain  { font-size: 10px; color: #6ba3ff; }
.wx-hr-item.wx-hr-now .wx-hr-rain { color: #b8d6ff; }

/* --- Daily tabs --- */
.wx-day-tabs-wrap {
    display: flex; overflow-x: auto;
    padding: 10px 12px 0; gap: 5px;
    scrollbar-width: none;
}
.wx-day-tabs-wrap::-webkit-scrollbar { display: none; }
.wx-day-tab-btn {
    flex-shrink: 0; border: none; background: transparent;
    border-radius: 12px; padding: 7px 9px;
    cursor: pointer; display: flex; flex-direction: column;
    align-items: center; gap: 2px; min-width: 46px;
    transition: background .2s, box-shadow .2s;
}
.wdt-name { font-size: 10px; font-weight: 700; color: #888; text-transform: uppercase; letter-spacing: .4px; }
.wx-day-tab-btn .wdt-icon { font-size: 17px; color: #ffb300; margin: 2px 0; }
.wdt-hi { font-size: 12px; font-weight: 800; color: #e05c00; }
.wdt-lo { font-size: 10px; color: #6ba3ff; }
.wx-day-tab-btn.active {
    background: #fff;
    box-shadow: 0 2px 12px rgba(47,53,143,.1);
}
.wx-day-tab-btn.active .wdt-name { color: #2f358f; }

/* --- Daily detail card --- */
.wx-day-detail { padding: 12px 18px 16px; }
.wx-day-det-head {
    display: flex; align-items: center; gap: 14px; margin-bottom: 10px;
}
.wx-day-det-icon { font-size: 38px; color: #ffb300; }
.wx-day-det-title { font-size: 17px; font-weight: 700; color: #1b2c59; }
.wx-day-det-date { font-size: 11px; color: #888; margin-top: 2px; }
.wx-day-det-temps {
    display: flex; align-items: baseline; gap: 8px; margin-bottom: 12px;
}
.wx-day-det-hi { font-size: 46px; font-weight: 200; color: #111; letter-spacing: -2px; line-height: 1; }
.wx-day-det-sep { font-size: 22px; color: #ccc; }
.wx-day-det-lo { font-size: 26px; font-weight: 300; color: #6ba3ff; }
.wx-day-det-grid {
    display: grid; grid-template-columns: 1fr 1fr; gap: 7px;
}
.wx-day-det-item {
    display: flex; align-items: center; gap: 9px;
    background: #f5f7fc; border-radius: 10px; padding: 9px 11px;
}
.wx-day-det-item i { font-size: 14px; color: #2f358f; width: 16px; text-align: center; flex-shrink: 0; }
.wx-day-det-item-label { font-size: 10px; color: #999; font-weight: 500; }
.wx-day-det-item-val { font-size: 13px; font-weight: 700; color: #222; }

/* Night theme overrides */
.wx-night-theme .wx-day-tab-btn.active { background: #16213e; box-shadow: none; }
.wx-night-theme .wx-day-tab-btn.active .wdt-name { color: #4ecca3; }
.wx-night-theme .wx-day-det-title { color: #e0e0e0; }
.wx-night-theme .wx-day-det-hi { color: #f0f0f0; }
.wx-night-theme .wx-day-det-sep { color: #444; }
.wx-night-theme .wx-day-det-item { background: #16213e; }
.wx-night-theme .wx-day-det-item i { color: #4ecca3; }
.wx-night-theme .wx-day-det-item-val { color: #e0e0e0; }
.wx-night-theme .wx-day-det-item-label { color: #778; }


/* Widget Night Theme (Applied to parent group) */
.widget-group.wx-night-theme .weather-card {
    background: #1a1a2e;
    color: #fff;
    border-color: #2c2c54;
}
.widget-group.wx-night-theme .widget-title {
    color: #1b2c59;
}
.widget-group.wx-night-theme .wx-temp,
.widget-group.wx-night-theme .wx-condition,
.widget-group.wx-night-theme .wx-label,
.widget-group.wx-night-theme .wx-hr-item,
.widget-group.wx-night-theme .wx-day-row {
    color: #e0e0e0;
}
.widget-group.wx-night-theme .wx-hr-item {
    background: #16213e;
}
.widget-group.wx-night-theme .wx-hr-item.wx-hr-now {
    background: #4ecca3;
    color: #1a1a2e;
}
.widget-group.wx-night-theme .wx-hr-item.wx-hr-now i {
    color: #1a1a2e;
}
.widget-group.wx-night-theme .wx-day-row:hover {
    background: #16213e;
}
.widget-group.wx-night-theme .wx-sun-times {
    color: #aaa;
}
.widget-group.wx-night-theme .wx-det-box i {
    color: #4ecca3;
}
.widget-group.wx-night-theme .wx-det-box b {
    color: #f0f0f0;
}
.widget-group.wx-night-theme .wx-det-box small {
    color: #aac4e0;
}
.widget-group.wx-night-theme .wx-details {
    border-bottom-color: #2c2c54;
}
.widget-group.wx-night-theme .wx-det-box {
    border-right-color: #2c2c54;
}
.widget-group.wx-night-theme .wx-hr-item i {
    color: #4ecca3;
}

/* CURRENCY */
.widgets-section .rate-text {
    font-size: 18px;
    color: #666;
    margin-bottom: 25px;
}

.widgets-section .currency-box {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #f7f9fc;
    border-radius: 18px;
    padding: 20px;
    margin-bottom: 20px;
}

.widgets-section .currency-left {
    display: flex;
    align-items: center;
    gap: 15px;
}

.widgets-section .flag {
    width: 55px;
    height: 55px;
    border-radius: 50%;
    overflow: hidden;
}

.widgets-section .flag img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.widgets-section .currency-name {
    font-size: 24px;
    font-weight: 700;
    color: #1b2c59;
}

.widgets-section .currency-sub {
    font-size: 13px;
    color: #777;
}

.widgets-section .currency-input {
    width: 180px;
    height: 58px;
    border: none;
    outline: none;
    background: #fff;
    border-radius: 14px;
    padding: 0 18px;
    font-size: 22px;
}

/* Scroll to Top Button */
.scroll-top-btn { z-index: 10000 !important; 
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 55px;
    height: 55px;
    background: #3c3794;
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 22px;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    display: none; /* Hidden by default */
    z-index: 999;
    transition: 0.3s ease;
    align-items: center;
    justify-content: center;
}

.scroll-top-btn:hover {
    background: #2b2671;
    transform: translateY(-5px);
}

.scroll-top-btn.show {
    display: flex;
}

@media(max-width: 768px) {
    .scroll-top-btn { z-index: 10000 !important; 
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
        font-size: 18px;
    }
}

.widgets-section .swap-btn {
    width: 65px;
    height: 65px;
    border: none;
    border-radius: 50%;
    background: #2453b3;
    color: #fff;
    font-size: 24px;
    cursor: pointer;
    display: block;
    margin: 15px auto;
    transition: .3s;
}

.widgets-section .swap-btn:hover {
    transform: rotate(180deg);
}

/* RESPONSIVE */
@media(max-width: 950px) {
    .widgets-section .widget-container {
        grid-template-columns: 1fr;
    }
}

@media(max-width: 650px) {
    .widgets-section .widget-title {
        font-size: 28px;
    }

    .widgets-section .temp {
        font-size: 72px;
    }

    .widgets-section .weather-info {
        grid-template-columns: 1fr;
    }

    .widgets-section .currency-box {
        flex-direction: column;
        gap: 18px;
        align-items: flex-start;
    }

    .widgets-section .currency-input {
        width: 100%;
    }
}

/* Glimpses Section Styles (Auto Carousel) */
.glimpses-section { overflow: hidden;  
    width: 100%;
    padding: 80px 0 80px;
    background: #ffffff;
}

.glimpses-section .section-title {
    text-align: center;
    font-size: 44px;
    font-weight: 700;
    color: #111;
    margin-bottom: 60px;
    letter-spacing: -1px;
}

.glimpses-section .carousel-wrapper {
    width: 100%;
    max-width: 100vw;
    overflow: hidden;
    position: relative;
    cursor: grab;
    user-select: none;
    touch-action: pan-y;
}

.glimpses-section .carousel-wrapper:active {
    cursor: grabbing;
}

.glimpses-section .carousel-track {
    display: flex;
    width: max-content;
    animation: scroll-glimpses 40s linear infinite; /* Slowed down slightly */
    gap: 35px;
    padding-left: 40px;
    will-change: transform;
}

.glimpses-section .carousel-wrapper.is-dragging .carousel-track {
    animation-play-state: paused;
}

.glimpses-section .gallery-card {
    width: 420px;
    flex-shrink: 0;
}

.glimpses-section .gallery-image {
    overflow: hidden;
}

.glimpses-section .gallery-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.glimpses-section .gallery-title {
    text-align: center;
    margin-top: 20px;
    font-size: 22px;
    font-weight: 700;
    color: #111;
    line-height: 1.2;
}

@keyframes scroll-glimpses {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

@media(max-width:768px) {
    .glimpses-section .section-title {
        font-size: 42px;
        margin-bottom: 40px;
    }
    .glimpses-section .gallery-card {
        width: 320px;
    }
    
    .glimpses-section .gallery-title {
        font-size: 18px;
    }
}

/* Gallery Section Styles */
.gallery-section { overflow: hidden;  
    background: url(../images/gaallery-top.png) top center no-repeat, url(../images/gallery-bottom.png) bottom center no-repeat;
    display: flex;
    padding: 80px 0px 120px 0px;
    flex-direction: column;
    align-items: center;
}

/* TITLE */
.gallery-section .title-area {
    text-align: center;
}

.gallery-section .title-area h1 {
    font-size: 44px;
    font-weight: 700;
    color: #161616;
    margin-bottom: 10px;
}

/* TABS */
.gallery-section .tabs {
    display: flex;
    justify-content: center;
    gap: 14px;
    margin-top: 35px;
    flex-wrap: wrap; /* Allow wrapping for many tabs */
}

/* Nested tabs styling */
.gallery-section .tab-content .tabs {
    margin-top: 20px;
    margin-bottom: 20px;
}

.gallery-section .tab-content .tab-btn {
    width: 160px; /* Slightly smaller for sub-tabs */
    height: 50px;
    font-size: 18px;
}

@media(max-width: 768px) {
    .gallery-section .tab-content .tab-btn {
        width: 140px;
        height: 45px;
        font-size: 16px;
    }

    .gallery-section .tab-content.active {
    
    display: flex!important;
    flex-direction: column;
    align-items: center;
}
}

/* Pagination Styling */
.gallery-section .pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: 40px;
    margin-bottom: 20px;
}

.gallery-section .pagination-btn {
    padding: 10px 20px;
    border: 2px solid #3f3993;
    background: transparent;
    color: #3f3993;
    font-weight: 700;
    cursor: pointer;
    border-radius: 4px;
    transition: 0.3s;
}

.gallery-section .pagination-btn:hover:not(:disabled) {
    background: #3f3993;
    color: #fff;
}

.gallery-section .pagination-btn:disabled {
    border-color: #ccc;
    color: #ccc;
    cursor: not-allowed;
}

.gallery-section .page-info {
    font-weight: 700;
    color: #333;
    font-size: 18px;
}

/* Lightbox Styling */


.gallery-section .tab-btn {
    width: 160px;
    height: 50px;
    border: none;
    border-radius: 4px;
    background: #9d99d9;
    color: #fff;
    font-size: 20px;
    font-weight: 700;
    cursor: pointer;
    transition: .3s;
}

.gallery-section .tab-btn.active { background: #3f3993; }

/* CONTENT */
.gallery-section .tab-content {
    display: none;
    margin-top: 20px;
}

.gallery-section .tab-content.active { max-width: 1400px; display: block; }

/* Gallery Video Carousel */
.gallery-section .gallery-video-section {
    width: min(1400px, 100%);
    margin-top: 70px;
}

.gallery-section .video-section-title {
    text-align: center;
    font-size: 36px;
    font-weight: 700;
    color: #111;
    margin-bottom: 28px;
}

.gallery-section .video-carousel-wrapper {
    width: 100%;
    overflow: hidden;
    position: relative;
    cursor: grab;
    user-select: none;
    touch-action: pan-y;
}

.gallery-section .video-carousel-wrapper:active {
    cursor: grabbing;
}

.gallery-section .video-carousel-track {
    display: flex;
    width: max-content;
    gap: 34px;
    animation: scroll-gallery-videos 40s linear infinite;
    padding: 4px 8px;
    will-change: transform;
}

.gallery-section .video-carousel-wrapper.is-dragging .video-carousel-track {
    animation-play-state: paused;
}

@keyframes scroll-gallery-videos {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* VIDEO GRID */
.gallery-section .video-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.gallery-section .video-card {
    text-align: center;
    cursor: pointer;
}

.gallery-section .video-carousel-track .video-card {
    width: 380px;
    flex-shrink: 0;
}

.gallery-section .video-thumb {
    position: relative;
    width: 100%;
    height: 220px;
    border-radius: 14px;
    overflow: hidden;
    cursor: pointer;
}

.gallery-section .video-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: .4s;
}

.gallery-section .video-card:hover img { transform: scale(1.06); }

/* PLAY BUTTON */
.gallery-section .play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 82px;
    height: 82px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, .85);
    background: rgba(255, 255, 255, .25);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
}

.gallery-section .play-btn i {
    color: #fff;
    font-size: 36px;
    margin-left: 6px;
}

.gallery-section .video-card h3 {
    margin-top: 24px;
    font-size: 20px;
    line-height: 1.45;
    font-weight: 700;
    color: #121212;
}

/* IMAGE GRID */
.gallery-section .image-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 28px;
}

@media(max-width: 992px) {
    .gallery-section .image-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .gallery-section .video-carousel-track .video-card {
        width: 320px;
    }
}

.gallery-section .image-card {
    overflow: hidden;
    border-radius: 14px;
    cursor: pointer;
    background: #fff;
    box-shadow: 0 5px 18px rgba(0, 0, 0, .08);
    transition: .35s;
}

.gallery-section .image-card:hover { transform: translateY(-6px); }

.gallery-section .image-card img {
    width: 100%;
    height: 260px;
    object-fit: cover;
    display: block;
    transition: .4s;
}

.gallery-section .image-card:hover img { transform: scale(1.08); }

/* RESPONSIVE */
@media(max-width: 1200px) {
    .gallery-section .video-grid { grid-template-columns: repeat(2, 1fr); }
    .gallery-section .image-grid { grid-template-columns: repeat(3, 1fr); }
}

@media(max-width: 768px) {
    .gallery-section .title-area h1 { font-size: 32px; }
    
    /* Main Tabs (Images / Videos) - Keep side-by-side */
    .gallery-section .title-area .tabs { 
        flex-direction: row; 
        justify-content: center; 
        gap: 12px;
        flex-wrap: nowrap;
        margin-top: 25px;
    }

    /* Sub-Tabs (Day 1, Day 2, etc.) - 2x2 Grid */
    .gallery-section .tab-content .tabs {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 12px;
        padding: 0 10px;
        width: 100%;
        max-width: 400px;
        margin: 20px auto;
    }

    .gallery-section .tabs::-webkit-scrollbar { display: none; }
    .gallery-section .tabs { -ms-overflow-style: none; scrollbar-width: none; }

    .gallery-section .tab-btn { 
        width: 180px; 
        max-width: 180px; 
        height: 50px; 
        font-size: 16px; 
    }

    /* Adjust sub-tabs specifically */
    .gallery-section .tab-content .tab-btn {
        width: 100%;
        height: 46px;
        font-size: 14px;
    }



    .gallery-section .video-grid { grid-template-columns: 1fr; }
    .gallery-section { padding: 80px 20px 120px !important; }
    .gallery-section .image-grid { 
        grid-template-columns: 1fr 1fr; 
        grid-template-rows: auto auto;
        gap: 12px; 
        width: 100%;
        margin: 0 auto;
    }
    .gallery-section .image-card img { height: 160px; }
    .gallery-section .video-thumb { height: 230px; }
    .gallery-section .video-card h3 { font-size: 16px; margin-top: 15px; }
    .gallery-section .gallery-video-section { margin-top: 50px; }
    .gallery-section .video-section-title { font-size: 24px; }
    .gallery-section .video-carousel-track { gap: 16px; padding-left: 12px; }
    .gallery-section .video-carousel-track .video-card { width: 300px; }
}

@media(max-width: 768px) {
    .footer-section { overflow: hidden;  min-height: auto; }
    .footer-section .footer-logo-img { max-width: 280px; }
    .footer-section .footer-divider-img { max-width: 90%; }
    .footer-section .socials { gap: 18px; }
    .footer-section .socials a { width: 65px; height: 65px; font-size: 28px; }
    .footer-section .menu { gap: 14px; }
    .footer-section .menu a { font-size: 18px; }
    .footer-section .copyright { font-size: 16px; }
}

/* WIDGETS RESPONSIVE */
@media(max-width: 768px) {
    .widgets-section .widget-container {
        grid-template-columns: 1fr;
        padding: 0 20px;
    }
}

@media(max-width: 650px) {
    .widgets-section .widget-title {
        font-size: 28px;
    }

    .widgets-section .temp {
        font-size: 42px;
    }

    .widgets-section .weather-info {
        grid-template-columns: 1fr;
    }

    .widgets-section .currency-box {
        flex-direction: column;
        gap: 15px;
        align-items: flex-start;
    }

    .widgets-section .currency-input {
        width: 100%;
    }
}

.wx-hourly-wrap::-webkit-scrollbar {
    height: 6px;
}
.wx-hourly-wrap::-webkit-scrollbar-track {
    background: rgba(0,0,0,0.05);
    border-radius: 10px;
}
.wx-hourly-wrap::-webkit-scrollbar-thumb {
    background: rgba(47, 53, 143, 0.2);
    border-radius: 10px;
}
.wx-night-theme .wx-hourly-wrap::-webkit-scrollbar-thumb {
    background: rgba(78, 204, 163, 0.3);
}

/* Weather Forecast Tabs */
.wx-forecast-tabs {
    display: flex;
    background: rgba(0,0,0,0.03);
    margin: 10px 20px;
    border-radius: 12px;
    padding: 4px;
}
.wx-tab-btn {
    flex: 1;
    border: none;
    background: transparent;
    padding: 8px;
    font-size: 13px;
    font-weight: 700;
    color: #666;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
}
.wx-tab-btn.active {
    background: #fff;
    color: #2f358f;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}
.wx-night-theme .wx-tab-btn.active {
    background: #16213e;
    color: #4ecca3;
}
.wx-pane {
    display: none;
}
.wx-pane.active {
    display: block;
    animation: wxFadeIn 0.4s ease;
}
@keyframes wxFadeIn {
    from { opacity: 0; transform: translateY(5px); }
    to { opacity: 1; transform: translateY(0); }
}


header.header-scrolled {
    height: 70px;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}


main { padding-top: var(--header-height); }
