/* style.css */
/* Global Styles */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    line-height: 1.6;
    color: #333;
    position: relative;
}

.dhanvantari-background-hue {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('images/lord_dhanvantari_bg.jpg');
    background-size: cover;
    background-position: center;
    opacity: 0.5;
    z-index: -1;
}

.page-wrapper {
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 1;
    background-color: rgba(255, 255, 255, 0.85);
}

h1, h2, h3 {
    color: #2c3e50;
}

a {
    color: #3498db;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

.content-section {
    padding: 20px 0;
    border-bottom: 1px solid #eee;
}

.content-section:last-child {
    border-bottom: none;
}

/* Main Header */
.main-header {
    text-align: center;
    padding: 20px 0;
    background-color: #f8f8f8;
    border-bottom: 1px solid #ddd;
}

.main-header h1 {
    margin: 0;
    font-size: 1.7em;
    color: #333;
    font-family: Georgia, serif;
    text-transform: uppercase;
}

.registration-number {
    margin: 5px 0 0 0;
    font-size: 0.9em;
    color: #666;
    font-style: italic;
}

/* —— Desktop Top Navigation (4 links) —— */
.desktop-navigation {
    display: none;           /* shown via media query */
    background-color: #333;
    padding: 10px 0;
    text-align: left;        /* left-align the links */
    margin-top: 10px;        /* small gap under header */
}

.desktop-navigation ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.desktop-navigation ul li {
    display: inline;
    margin: 0 15px;
}

.desktop-navigation ul li a {
    color: white;
    font-weight: bold;
    text-decoration: none;
}

.desktop-navigation ul li a:hover {
    text-decoration: underline;
}

/* Portrait Section (Mobile & Desktop) */
.portrait-section {
    display: block;
    text-align: center;
    padding: 10px 0; /* reduced padding so content starts higher */
}

.dhanvantari-portrait {
    /* Mobile default: width 60%, auto height */
    width: 60%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

/* ================= NEW MATRIMONY HERO BUTTON ================= */
.matrimony-hero-section {
    text-align: center;
    margin: 10px 20px 25px 20px;
}

.hero-btn {
    display: inline-block;
    background-color: #800000; /* Maroon to match matrimony site */
    color: #D4AF37; /* Gold text */
    font-size: 1.3em;
    font-weight: bold;
    text-decoration: none;
    padding: 15px 30px;
    border-radius: 8px;
    border: 2px solid #D4AF37;
    box-shadow: 0 4px 8px rgba(0,0,0,0.3);
    transition: transform 0.2s, box-shadow 0.2s, background-color 0.2s;
}

.hero-btn:hover {
    background-color: #D4AF37;
    color: #800000;
    transform: scale(1.05);
    box-shadow: 0 6px 12px rgba(0,0,0,0.4);
    text-decoration: none;
}
/* ============================================================ */

/* Mobile QR Donate Section */
.mobile-qr-donate {
    display: block;
    padding: 0 20px;
    margin-bottom: 30px;
}

.mobile-qr-donate p {
    font-weight: bold;
    margin-bottom: 10px;
}

.mobile-donate-qr {
    width: 60%;
    height: auto;
    display: block;
    margin: 0 auto;
}

/* Hide mobile QR donate on desktop */
@media (min-width: 1000px) {
    .mobile-qr-donate {
        display: none;
    }
}

/* Mobile Leaders Section */
.mobile-leaders-section {
    display: block;
    padding: 20px;
    background-color: #f9f9f9;
    border-bottom: 1px solid #ddd;
}

.directors-heading {
    text-align: center;
    color: #2c3e50;
    margin-bottom: 20px;
}

.show-exec-button {
    display: block;
    width: 100%;
    margin: 20px 0;
    padding: 10px;
    background-color: #3498db;
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 1em;
    cursor: pointer;
}

.show-exec-button:hover {
    background-color: #2980b9;
}

/* Left Sidebar (Desktop) */
.left-sidebar {
    padding: 15px;
    background-color: #f9f9f9;
    border-right: 1px solid #ddd;
    display: none; /* shown via media query */
}

/* Directors & Executive Members Entries */
.directors-section,
.executive-members-section,
.advisors-section {
    margin-bottom: 30px;
}

.leader-entry {
    margin-bottom: 20px;
}

.leader-name-phone {
    font-weight: bold;
    margin-bottom: 0;
    line-height: 1.2;
}

.leader-designation {
    font-style: italic;
    font-size: 0.9em;
    margin: 0;
    line-height: 1.2;
}

/* Main Content Area (Desktop) */
.main-content-area {
    flex-grow: 1;
    padding: 20px;
}

/* Event Item Styling */
.event-item {
    margin-bottom: 20px;
    padding: 15px;
    background-color: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 5px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.event-item h3 {
    margin-top: 0;
    color: #3498db;
    margin-bottom: 10px;
}

.event-item p {
    margin-bottom: 15px;
    color: #555;
    line-height: 1.5;
}

/* Inline Event-Image Styling */
.event-item img {
    width: 100%;
    height: auto;
    margin-bottom: 10px;
}

/* ================= ADJUSTED “FILE MODAL” STYLES ================= */

/* The overall dark overlay */
.pdf-modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
}

/*
    Instead of allowing the modal-content to “shrink-wrap”,
    we force it to occupy 90% of viewport width and height.
    Inside it, the iframe/img will fill 100% of that space.
*/
.pdf-modal-content {
    position: relative;
    background-color: #fefefe;
    margin: auto;                 /* centered both horizontally and vertically */
    padding: 0;
    border: none;
    width: 90vw;                  /* always 90% of viewport width */
    height: 90vh;                 /* always 90% of viewport height */
    border-radius: 8px;
    overflow: hidden;             /* hide scrollbars; content will scale if needed */
}

/* The “×” button in the top-right */
.pdf-close {
    position: absolute;
    top: 10px;
    right: 15px;
    color: #333;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    z-index: 2001;
    background-color: rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.pdf-close:hover,
.pdf-close:focus {
    color: #000;
    background-color: rgba(255, 255, 255, 1);
}

/*
    Make sure the <iframe> holding a PDF
    always fills the entire parent (.pdf-modal-content).
*/
#filePdfViewer {
    display: block;            /* shown/hidden by JS */
    width: 100%;               /* fill modal-content’s width */
    height: 100%;              /* fill modal-content’s height */
    border: none;
}

/*
    The <img> viewer should also fill the modal-content completely,
    and scale (object-fit: contain) so portrait images don’t get cut off.
*/
#fileImageViewer {
    display: block;            /* shown/hidden by JS */
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* ================= END OF ADJUSTED “FILE MODAL” STYLES ================= */

/* Contributors & Members Styling */
.contributors-list {
    margin-top: 20px;
}

/* Each entry uses the same “contributor-entry” style (blue left border) */
.contributor-entry {
    margin-bottom: 15px;
    padding: 10px;
    background-color: #f8f9fa;
    border-left: 4px solid #3498db;
    border-radius: 4px;
}

.contributor-entry p {
    margin: 0;
    font-weight: bold;
    color: #333;
}

/* Style for “— ₹amount” text under Contributions in June */
.contributor-amount {
    font-style: italic;
    font-size: 0.9em;
    color: #555;
    margin-left: 5px;
}

/* Red border for the “Contributions in June” container */
.red-border {
    border: 2px solid red;
    padding: 10px;
    border-radius: 4px;
}

/* Footer (Contribute Here) */
.main-footer {
    text-align: center;
    padding: 30px 20px;
    background-color: #333;
    color: #fff;
    margin-top: 30px;
}

.main-footer h2 {
    color: #fff;
}

.main-footer a {
    color: #7ddcff;
}

/* Contribution Details: now two columns on desktop */
.contribution-details {
    display: block;    /* default: stack on mobile */
    margin-bottom: 20px;
    text-align: left;
}

/* In mobile view, keep horizontal separators */
.contribution-details .payment-method:not(:last-child) {
    border-bottom: 1px solid #ccc;
    padding-bottom: 10px;
    margin-bottom: 10px;
}

/* Individual Payment-Method Boxes */
.payment-method {
    margin-bottom: 20px;
}

.upi-transfer-method {
    text-align: center;
}

.account-transfer-method {
    /* keep left-aligned inside its column for the details */
    text-align: left;
}

/* Center only the h3 within account-transfer-method */
.account-transfer-method h3 {
    text-align: center;
}

/* Updated UPI QR code styling (no more <a> wrapper) */
.upi-scanner img {
    display: block;
    margin: 10px auto 0 auto;
    cursor: default; /* no clickable behavior */
}

/* New styles for the contact separator and prompt */
.contact-separator {
    border: 0;
    border-top: 1px solid #ccc;
    margin: 20px 0;
}

.contact-prompt {
    color: #fff;
    font-weight: bold;
    margin-bottom: 10px;
}

/* Contact Info */
.contact-info {
    margin-bottom: 20px;
}

copyright {
    font-size: 0.9em;
    margin-top: 20px;
}

/* Mobile-Only Styles (<1000px) */
.mobile-button-bar {
    display: flex;
    justify-content: center;
    background-color: #444;
    padding: 10px;
}

.mobile-nav-button {
    background-color: #555;
    color: white;
    border: none;
    padding: 10px 15px;
    cursor: pointer;
    border-radius: 5px;
    font-size: 1em;
}

.mobile-nav-button:hover {
    background-color: #666;
}

.mobile-panel {
    display: none;
    position: fixed;
    top: 0;
    right: 0;
    width: 75%;
    height: 100%;
    background-color: #fff;
    box-shadow: -2px 0 5px rgba(0,0,0,0.2);
    z-index: 1000;
    overflow-y: auto;
    padding: 20px;
    color: #333;
}

.mobile-panel.active {
    display: block;
}

.close-panel-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #eee;
    border: 1px solid #ccc;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    font-size: 1.2em;
    cursor: pointer;
    line-height: 28px;
    text-align: center;
}

.close-panel-btn:hover {
    background: #ddd;
}

.mobile-navigation ul {
    list-style: none;
    padding: 0;
    margin: 0;
    margin-top: 40px;
}

.mobile-navigation ul li a {
    display: block;
    padding: 10px 15px;
    color: #333;
    border-bottom: 1px solid #eee;
}

.mobile-navigation ul li a:hover {
    background-color: #f0f0f0;
}

.left-sidebar {
    display: none; /* hide on mobile */
}

/* Responsive Breakpoint (≥1000px) – Desktop/Laptop Mode */
@media (min-width: 1000px) {
    /* Hide mobile-only elements */
    .mobile-button-bar,
    .mobile-leaders-section,
    .mobile-panel {
        display: none !important;
    }

    /* Show desktop top menu */
    .desktop-navigation {
        display: block;
    }

    /* Portrait on Desktop: 45vh tall, max-width 55vw */
    .portrait-section {
        display: block;
    }

    .dhanvantari-portrait {
        width: auto;
        height: 45vh;      /* increased from 40vh */
        max-width: 55vw;   /* increased from 50vw */
        border-radius: 10px;
        box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    }
    
    /* Center the Matrimony button on Desktop */
    .matrimony-hero-section {
        margin-top: 20px;
    }

    /* Two-column desktop layout, immediately below the portrait */
    .desktop-layout {
        display: flex;
        margin-top: 10px;  /* small gap below portrait */
    }

    /* Show left sidebar */
    .left-sidebar {
        display: block;
        flex: 0 0 300px;
        margin-right: 20px;
    }

    /* Main content area grows to fill */
    .main-content-area {
        flex-grow: 1;
    }

    /* Remove mobile horizontal separators */
    .contribution-details .payment-method:not(:last-child) {
        border-bottom: none;
        padding-bottom: 0;
        margin-bottom: 0;
    }

    /* Footer: two columns with equal width */
    .contribution-details {
        display: flex;
        justify-content: space-between;
        /* Make both columns match height */
        align-items: stretch;
    }

    /* Both children share equal width */
    .contribution-details > .payment-method {
        flex: 1;
        padding: 0 15px;
    }

    /* Vertical partition between UPI and Account in Contribute Here */
    .contribution-details > .payment-method:first-child {
        border-right: 1px solid #ccc;
    }

    /* Shift Account column content slightly to the right */
    .account-transfer-method {
        padding-left: 20px;
    }

    /* Adjust UPI and Account blocks on desktop */
    .upi-transfer-method {
        text-align: center;
    }

    .account-transfer-method {
        /* keep left-aligned inside its column */
        text-align: left;
    }
}