/* ===================================== */
/* === 1. HEADER LAYOUT (Standalone) === */
/* ===================================== */
html,body{height:100%;margin:0;padding:0;font-family:'Inter',Arial,sans-serif;background-color:#24304a;display:flex;flex-direction:column;}
.site-wrapper{flex:1;display:flex;flex-direction:column;}
.main-site-header{background-color:#24304a;color:white;width:100%;box-sizing:border-box;padding:5px 10px;position:relative;z-index:1001;}
.header-container{display:flex;align-items:center;justify-content:space-between;margin:0 auto;}
.site-logo-link{padding:5px;display:inline-block;border-radius:6px;}
.site-logo{height:40px;padding:5px;box-sizing:content-box;display:block;line-height:40px;text-align:center;color:white;font-size:16px;border-radius:6px;}
.site-logo::after{content:"HRL Logo";}
.nav-wrapper{display:flex;align-items:center;gap:10px;}
.site-nav{display:flex;}
.main-menu-list{display:flex;list-style:none;margin:0;padding:0;}
.main-menu-list li{position:relative;}
.main-menu-list li a{text-decoration:none;color:white;font-size:16px;padding:8px 12px;display:block;transition:background-color 0.2s;border-radius:6px;}
.main-menu-list li a:hover{background-color:#38446d;}
.has-submenu:hover .submenu{display:block;}
.submenu{display:none;position:absolute;top:100%;left:0;background-color:#24304a;list-style:none;margin:0;padding:4px 0;border-radius:6px;box-shadow:0 4px 10px rgba(0,0,0,0.5);z-index:1000;width:max-content;min-width:250px;}
.submenu li a{padding:8px 15px;color:white;font-size:15px;}
.submenu li a:hover{background-color:#38446d;}
.visually-hidden{position:absolute;left:-9999px;visibility:hidden;}
.menu-icon{display:none;font-size:28px;color:white;cursor:pointer;padding:5px 10px;border:1px solid transparent;border-radius:6px;transition:background-color 0.2s;}
.menu-toggle:checked + .menu-icon{background-color:#38446d;}
.login-status a:hover{text-decoration:underline;}

/* ========================================================= */
/* --- 2. Login Style Layout --- */
/* ========================================================= */
.login-form {max-width:500px;margin:3em auto;text-align:center;}
.login-form img {max-width:160px;margin-bottom:1.5em;}
.login-form h1 {font-size:1.8em;margin-bottom:0.5em;}
.login-form input[type="email"] {width:100%;padding:0.75em;font-size:1em;margin-bottom:1em;border:1px solid #ccc;border-radius:4px;}
.login-form button {background-color:#2a7ae2;color:white;padding:0.75em 1.5em;font-size:1em;border:none;border-radius:4px;cursor:pointer;}
.verify-form {max-width:500px;margin:3em auto;text-align:center;}
.verify-form img {max-width:160px;margin-bottom:1.5em;}
.verify-form h1 {font-size:1.8em;margin-bottom:0.5em;color:white;}
.verify-form input[type="text"] {width:100%;padding:0.75em;font-size:1em;margin-bottom:1em;border:1px solid #ccc;border-radius:4px;}
.verify-form button {background-color:#2a7ae2;color:white;padding:0.75em 1.5em;font-size:1em;border:none;border-radius:4px;cursor:pointer;}

/* ========================================================= */
/* --- 3. CAROUSEL STYLING (UNCHANGED) --- */
/* ========================================================= */
#image-carousel{position:relative;width:100%;overflow:hidden;height:600px;}
.carousel-container{display:flex;transition:transform 0.5s ease-in-out;height:100%;position:relative;width:100%;}
.carousel-track{display:flex;transition:transform 0.5s ease-in-out;height:100%;width:max-content;}
.carousel-slide{min-width:100%;box-sizing:border-box;position:relative;}
.carousel-slide img{width:100%;height:100%;object-fit:cover;}
.carousel-overlay{position:absolute;top:50%;left:5%;transform:translateY(-50%);color:white;text-align:left;max-width:700px;}
.carousel-right-overlay{position:absolute;top:50%;right:5%;transform:translateY(-50%);color:white;text-align:right;max-width:700px;}
.carousel-text-link{text-decoration:none;display:inline-block;}
.carousel-text-overlay{background-color:rgba(36,48,74,0.7);padding:20px;border-radius:8px;display:inline-block;text-align:left;transition:color 0.3s ease;}
.carousel-text-overlay h2,.carousel-text-overlay p{color:white;transition:color 0.3s ease;}
.carousel-text-link:hover .carousel-text-overlay h2,.carousel-text-link:hover .carousel-text-overlay p{color:#ffd700;}
.carousel-overlay h2,.carousel-right-overlay h2{font-size:2.2em;margin-top:0;margin-bottom:10px;}
.carousel-overlay p,.carousel-right-overlay p{font-size:1.8em;margin:0;}
.prev,.next{cursor:pointer;position:absolute;top:50%;width:auto;padding:16px;margin-top:-22px;color:white;font-weight:bold;font-size:30px;transition:0.6s ease;border-radius:0 3px 3px 0;user-select:none;-webkit-user-select:none;z-index:1;}
.next{right:0;border-radius:3px 0 0 3px;}
.prev{left:0;border-radius:0 3px 3px 0;}
.prev:hover,.next:hover{background-color:rgba(0,0,0,0.8);}
.hero-wrapper {height: 100vh;display: flex;flex-direction: column;overflow: hidden;}
.hero-layout {flex: 1;display: flex;flex-direction: column; justify-content: flex-start;}
#image-carousel {flex: 1;position: relative;width: 100%;overflow: hidden;}
.carousel-slide img {width: 100%;height: auto;object-fit: cover;aspect-ratio: 1920 / 900;}

/* ========================================================= */
/* --- 4. FOOTER STYLING (UPDATED FOR DESKTOP/TABLET/MOBILE) */
/* ========================================================= */
.main-footer {background-color: #ffd700;padding: 8px;color: black;font-size: 12px;}
.footer-container {display: flex;justify-content: space-between;align-items: center;flex-wrap: wrap;gap: 0px;}
.footer-left {flex: 1;}
.footer-ssl {flex: 0;text-align: center;}
.footer-ssl img {display: block;}
.footer-nav {flex: 1;display: flex;justify-content: flex-end;}
.footer-nav-links {list-style: none;padding: 0;margin: 0;display: flex;flex-wrap: wrap;gap: 11px;}
.footer-nav a, .footer-left a {color: #000000;text-decoration: none;}
.footer-legal-links {display: inline;margin-left: 8px;}
.footer-legal-links a {margin-right: 8px;}
.custom-ssl {position: relative;display: inline-block;overflow: visible;}
.ssl-popup {display: none;position: absolute;bottom: 45px;left: 0;transform: none;z-index: 9999;max-width: 280px;border-radius: 4px;box-shadow: 0 2px 8px rgba(0,0,0,0.25);}
.custom-ssl:hover .ssl-popup {display: block;}


.footer-right {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}
.footer-nav {
    display: flex;
    justify-content: flex-end;
}

.footer-social {
    margin-bottom: 4px; 
}
.footer-social a {
    font-weight: bold;
    font-size: 11px;
    margin-left: 12px;
    color: #000;
    text-decoration: none;
}
.footer-social a:hover {
    text-decoration: underline;
}








@media (max-width: 599px) {
    .footer-container {flex-direction: column;align-items: flex-start;}
    .footer-left {order: 1;width: 100%;white-space: nowrap;margin-bottom: 5px;}
    .footer-legal-links {display: block;margin-left: 0;margin-top: 5px;white-space: normal;}
    .custom-ssl {order: 3;width: 100%;margin: 10px 0 0 0;display: flex;justify-content: flex-start;}
    .footer-nav {display: none;}
	
	.footer-right {
        align-items: flex-start; /* Aligns social links to the left on mobile */
        margin-top: 10px;
    }
    .footer-social a {
        margin-left: 0;
        margin-right: 15px;
    }
}

@media (min-width: 600px) and (max-width: 1023px) {
    .footer-nav {display: none;}
    .footer-container {display: flex;justify-content: space-between;align-items: center;}
    .footer-left {order: 1;text-align: left;width: auto;}
    .custom-ssl {order: 2; margin-left: auto;}
    .custom-ssl .ssl-popup {right: auto;left: 0;transform: none;}
}

.footer-container {
    display: flex;
    flex-direction: column; /* Stacks Top Row and Bottom Row */
    gap: 15px;
}

.footer-bottom-row {
    display: flex;
    justify-content: space-between; /* Pushes Social to left, SSL to right */
    align-items: center;
    width: 100%;
    padding-top: 10px;
    border-top: 1px solid rgba(0,0,0,0.1); /* Subtle divider */
}

.footer-social-icons {
    display: flex;
    gap: 15px;
}

.footer-social-icons img {
    filter: grayscale(100%); /* Makes logos black to match your theme */
    transition: filter 0.3s;
}

.footer-social-icons img:hover {
    filter: grayscale(0%); /* Returns color on hover */
}

/* Ensure mobile layout handles the stack */
@media (max-width: 599px) {
    .footer-bottom-row {
        flex-direction: column;
        gap: 15px;
        align-items: flex-start;
    }
}


/* Container Layout */
.footer-container {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-top-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

/* Bottom Row Styling */
.footer-bottom-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding-top: 8px;
    border-top: 1px solid rgba(0,0,0,0.1); /* Subtle line to separate rows */
}

.footer-social-logos {
    display: flex;
    align-items: center;
    gap: 12px;
}

.footer-social-logos img {
    display: block;
    transition: transform 0.2s;
}

.footer-social-logos img:hover {
    transform: scale(1.1); /* Subtle zoom on hover */
}

/* Mobile Fixes (Keep the logic you had for 599px) */
@media (max-width: 599px) {
    .footer-top-row {
        flex-direction: column;
        align-items: flex-start;
    }
    .footer-bottom-row {
        flex-direction: row; /* Keeps Social and SSL side-by-side on mobile */
        justify-content: space-between;
    }
    .footer-nav {
        display: none; /* Keeps your existing rule to hide nav on mobile */
    }
}

/* Ensure the container stays stable */
.custom-ssl {
    position: relative;
    display: inline-block;
}

/* Align the popup to the right edge */
.ssl-popup {
    display: none;
    position: absolute;
    bottom: 45px; /* Sits above the badge */
    right: 0;      /* Anchors to the right edge of the badge */
    left: auto;   /* Overrides any previous left alignment */
    z-index: 9999;
    max-width: 280px;
    border-radius: 4px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

/* Show on hover */
.custom-ssl:hover .ssl-popup {
    display: block;
}

/* Tablet/Mobile Adjustments */
@media (max-width: 1023px) {
    .ssl-popup {
        right: 0;
        left: auto;
    }
}





/* ========================================================= */
/* --- 5. INDEX PAGE & GENERIC CONTENT STYLING           --- */
/* ========================================================= */
.main-content-box {position:relative;width:40%;margin-right:5%;padding:20px;box-sizing:border-box;display:flex;flex-direction:column;text-align:justify;justify-content:center;color:white;background-color:rgba(36, 48, 74, 0.7);border-radius:8px;font-size:1em;text-shadow:1px 1px 3px rgba(0, 0, 0, 0.6);}
.contact-link {color:#ffd166;text-decoration:none;font-weight:bold;}
.contact-link:hover {text-decoration:underline;}

/* ========================================================= */
/* --- 6. ABOUT PAGE STYLING                             --- */
/* ========================================================= */
.page-about main,.page-about #about-page,.contents-details{margin:0;padding:0;}
.about-image-container,.about-imagefull-container{position:relative;width:100%;overflow:hidden;display:block;line-height:0;}
.about-image-container img,.about-image-container picture{width:100%;min-height:450px;object-fit:cover;}
.about-imagefull-container img,.about-imagefull-container picture{width:100%;height:600px;object-fit:cover;}
.about-heading-with-buttons{position:relative;display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;padding-bottom:0.5rem;}
.about-heading-with-buttons::after{content:"";position:absolute;bottom:0;left:0;width:100%;height:1px;background-color:#6ea0ff;}
.about-heading-with-buttons .about-heading,.contents-details h2{font-size:1.8rem;color:white;margin:0;text-align:left;}
.about-heading-with-buttons h3{border-bottom:none;margin-bottom:0;padding-bottom:0;}
.about-heading-button{background-color:#ffd700;color:black;padding:0.2em 0.8em;border-radius:4px;text-decoration:none;font-size:1rem;text-align:center;display:inline-block;}
.about-heading-button:hover{background-color:#ffb700;}
.about-link-overlay{position:absolute;bottom:2rem;left:0;right:0;width:100%;background-color:rgba(36,48,74,0.7);padding:1rem 0;display:grid;grid-template-columns:1fr 1fr 1fr;align-items:center;z-index:2;}
.link-left{justify-self:start;text-align:left;padding:0;}
.link-center{justify-self:center;text-align:center;padding:0 1rem;}
.link-right{justify-self:end;text-align:right;padding:0;}
.about-link-overlay a{display:inline-block;color:white;font-size:2rem;font-weight:bold;text-decoration:none;white-space:nowrap;transition:text-decoration 0.2s ease;padding:0.75em 2em;}
.about-link-overlay a:hover{text-decoration:underline;}
.contents-details{margin:1rem 1rem;padding:0 1rem;font-size:1rem;line-height:1.2;color:#f2f2f2;}
.contents-details h3{margin-top:2.5rem;font-size:1.4rem;color:#ffffff;border-bottom:1px solid #6ea0ff;}
.contents-details h4{margin-top:2rem;font-size:1.2rem;color:#ffffff;font-weight:bold;}
.contents-details ul{margin:1rem 0 2rem 1.5rem;padding-left:1rem;list-style-type:disc;font-size:1rem;}
.contents-details ul li::marker{color:#c0d6ff;font-size:1rem;}
.contents-details p{margin-bottom:1rem;}
.contact-link{color:#ffd166;text-decoration:none;font-weight:bold;}
.contact-link:hover{text-decoration:underline;}

/* ========================================================= */
/* ===  7. Submenu Styles Layout                         === */
/* ========================================================= */
.submenu-columns{display:flex;flex-direction:row;justify-content:space-between;align-items:flex-start;gap:2rem;max-width:1200px;margin:40px auto;padding:0 20px;box-sizing:border-box;}
.submenu-left{flex:0 0 33%;max-width:33%;}
.submenu-left h2{font-size:1.4rem;color:#fff;text-align:left;}
.submenu-image,.submenu-heading-row .submenu-image{width:100%;height:auto;display:block;border-radius:6px;border:3px solid #ccc;box-shadow:0 4px 12px rgba(0,0,0,0.3);object-fit:contain;}
.submenu-right{flex:1 1 67%;max-width:67%;font-size:1rem;line-height:1.4;color:#fff;border-radius:6px;}
.submenu-layout{max-width:1200px;margin:2rem auto;padding:0 2rem;font-family:sans-serif;font-size:1.2rem;line-height:1.3;color:#f2f2f2;}
.submenu-image-float{float:left;width:45%;max-width:550px;max-height:400px;object-fit:contain;object-position:top;display:block;margin:0.5rem 2rem 1rem 0;border-radius:0.5rem;box-shadow:0 4px 12px rgba(0,0,0,0.3);border:3px solid #ccc;padding:0.25rem;background-color:#1a1a1a;}
.aspect-ratio-3-4{aspect-ratio:3/4;width:25%;}
.aspect-ratio-3-2{aspect-ratio:3/2;width:40%;}
.two-column-ul{list-style-type:disc;padding-left:45px;margin-bottom:1.5rem;column-count:3;column-gap:1rem;}
.two-column-ul li,.one-column-ul li{font-size:1rem;}
.one-column-ul{list-style-type:disc;padding-left:45px;margin-bottom:1.5rem;column-count:1;column-gap:1rem;font-size:1rem;}
.submenu-heading{font-size:1.8rem;margin:0 0 1rem 0;color:#fff;}
.submenu-layout p{margin-bottom:1.5rem;font-size:1rem;clear:none;}
.desktop-postcards-pagination{display:flex;gap:6px;align-items:center;justify-content:flex-end;flex-wrap:wrap;margin-bottom:2px;}
.desktop-postcards-pagination a{text-decoration:none;color:#fff;background-color:#2c3e50;padding:6px 10px;border-radius:6px;display:inline-block;transition:background-color 0.3s ease-in-out;white-space:nowrap;font-size:14px;position:static;left:auto;right:auto;top:auto;margin-top:0;font-weight:bold;}
.desktop-postcards-pagination a:hover{background-color:#34495e;}
.desktop-postcards-pagination .active{background-color:#ffd700;color:#2c3e50;pointer-events:none;}
.mmcards-header-block{display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;color:#fff;}
.mmcards-records-found{color:#fff;display:flex;justify-content:space-between;align-items:flex-end;gap:10px;font-weight:bold;}
.mmcards-pagination-wrapper{display:flex;align-items:center;}
.desktop-label{display:inline;}
.mobile-label{display:none;}

@media screen and (max-width:767px) {
  .submenu-columns{flex-direction:column;padding:0 1rem;}
  .submenu-left,.submenu-right{flex:1 1 100%;max-width:100%;}
  .submenu-heading-row{display:flex;align-items:flex-end;gap:1rem;margin-bottom:1rem;padding:0 1rem;}
  .submenu-heading-row .submenu-image{width:40%;max-width:none;height:auto;border-radius:6px;object-fit:cover;flex-shrink:0;}
  .submenu-heading-row .about-heading{width:60%;font-size:1.6rem;margin:0;color:#fff;border-bottom:1px solid #6ea0ff;padding-bottom:2px;}
  .submenu-text{color:#fff;padding:0 1rem;font-size:0.95rem;line-height:1.5;}
  .two-column-ul{column-count:2;padding-left:1.5rem;}
}

@media(max-width:768px){
  .desktop-label{display:none;}
  .mobile-label{display:inline;}
}

/* ==============================================
/* === 8. Terms and Privacy style layout
============================================== */
.policy-container {max-width: 800px;margin: 5px auto;background: none;background-color: white;padding-left: 5%;padding-right: 5%;padding-top: 2%;padding-bottom: 2%;border-radius: 5px;box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);}

/* ============================================== */
/* === 9. MMCards Style Layout – Search Form  === */
/* ============================================== */
.desktop-search-container{max-width:600px;margin:0 auto;padding:25px;background:linear-gradient(135deg,#242f4a,#1a2336);border-radius:12px;box-shadow:0 8px 20px rgba(0,0,0,0.3);text-align:center;font-family:Arial,sans-serif;position:relative;}
.desktop-search-container::before{content:"";position:absolute;top:-8px;left:-8px;width:calc(100% + 16px);height:calc(100% + 16px);border-radius:14px;background:rgba(36,48,74,0.2);box-shadow:0 0 10px rgba(36,48,74,0.5);z-index:-1;}
.desktop-search-container form{display:flex;align-items:center;gap:5px;flex-wrap:wrap;}
.desktop-search-container input[type="text"]{flex:1;min-width:250px;padding:8px;border-radius:6px;border:1px solid #ccc;}
.desktop-search-container button{width:100%;max-width:600px;padding:10px 15px;background-color:#ffd700;color:#242f4a;border-radius:6px;border:none;cursor:pointer;transition:background-color 0.3s ease-in-out;}
.desktop-search-container button:hover{background-color:#34495e;color:#fff;}
.desktop-category-container{display:block;grid-template-columns:max-content 1fr;padding-right:25px;width:100%;align-items:center;}
.desktop-category-box{display:grid;grid-template-columns:auto 1fr;gap:8px;}
.desktop-category-box label{display:block;width:100%;align-items:center;gap:5px;font-size:16px;color:#fff;margin-top:5px;text-align:left;margin-left:20px;padding-right:20px;}
.desktop-category-box input,.desktop-category-box select{display:block;width:100%;padding:8px;border:1px solid #ccc;border-radius:4px;box-sizing:border-box;}
.desktop-category-box select{height:35px;}
.desktop-category-container legend{font-size:20px;color:#fff;padding:5px 10px;background-color:#24304a;border-radius:5px;}
.form-instruction{color:white;font-size:14px;margin-top:16px;margin-bottom:3px;}

/* ======================================================= */
/* === 9a. MMCards Table + Footer Layout (Scroll-Safe) === */
/* ======================================================= */
#desktop-mmcards-card,.desktop-mmcards-records-grid,.mmcards-results-table,.mmcards-table-footer{width:90vw;max-width:1600px;margin:0 auto;box-sizing:border-box;overflow-x:auto;}
.mmcards-results-table{border-collapse:collapse;background-color:#F5F0E6;font-size:14px;}
.mmcards-results-table th,.mmcards-results-table td{padding:4px 6px;font-size:14px;border:1px solid #ccc;text-align:left;color:#3C4A5E;}
.mmcards-results-table th{background-color:#E0E4EC;font-weight:bold;}
.mmcards-results-table tr:hover{background-color:#FFF3A3;cursor:pointer;}
.col-regimental-number,.col-regimental-paper,.col-schedule-number{width:90px;max-width:90px;min-width:90px;padding-left:3px;padding-right:3px;text-align:center !important;vertical-align:middle !important;white-space:normal;word-break:break-word;overflow-wrap:break-word;}
.col-view {width: 1%;white-space: nowrap;text-align: center;padding-left: 0;padding-right: 0;}
.mmcards-results-table td.col-regimental-number *,.mmcards-results-table td.col-regimental-paper *,.mmcards-results-table td.col-schedule-number *{text-align:center !important;margin:0 auto;}
.mmcards-header-label{display:inline-block;text-align:center;line-height:1.2;white-space:normal;word-break:break-word;width:100%;}
.mmcards-table-footer{display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;color:#fff;margin:20px auto 5px auto;gap:10px;}
.mmcards-records-found{font-size:16px;color:#ffffff;white-space:nowrap;}
.mmcards-row-selector{display:flex;align-items:center;gap:10px;}
.mmcards-row-selector label{color:#ffffff;font-size:16px;font-weight:bold;letter-spacing:0.5px;}
.mmcards-row-selector select{padding:6px 10px;border-radius:6px;border:1px solid #ccc;background-color:#F5F0E6;color:#24304a;}
.desktop-mmcards-pagination{display:flex;gap:10px;align-items:center;justify-content:center;flex-wrap:wrap;}
.desktop-mmcards-pagination a{text-decoration:none;color:#fff;background-color:#2c3e50;padding:8px 12px;border-radius:6px;display:inline-block;font-weight:bold;transition:background-color 0.3s ease-in-out;}
.desktop-mmcards-pagination a:hover{background-color:#34495e;}
.desktop-mmcards-pagination .active{background-color:#ffd700;color:#2c3e50;pointer-events:none;}

/* ============================================== */
/* === 10. Postcards Search Style Layout      === */
/* ============================================== */
.postcards-search,.postcards-card{width:90vw;margin:0 auto;padding:15px;}
.search-container,.category-container,.category-box{width:100%;}
.category-box label{display:block;font-weight:bold;margin-top:10px;}
.category-box input,.category-box select{width:100%;padding:8px;margin-top:4px;margin-bottom:10px;border:1px solid #ccc;border-radius:6px;font-size:14px;}
.postcards-record-container{background:#fff;border-radius:10px;box-shadow:0 6px 15px rgba(0,0,0,0.2);padding:15px;display:flex;flex-direction:column;align-items:center;transition:background-color 0.3s ease-in-out;height:400px;}
.postcards-record-container:hover{background-color:#FFF3A3;}
.postcards-record-image{width:100%;aspect-ratio:3/2;object-fit:cover;border-radius:8px;border:1px solid #999;display:block;}
.postcards-details-container {display: flex;flex-direction: column;gap: 10px;width: 100%;text-align: left;min-height: 2em;}
.postcards-pagination{display:flex;gap:10px;align-items:center;justify-content:center;margin-top:10px;}
.postcards-pagination a{text-decoration:none;color:#fff;background-color:#2c3e50;padding:8px 12px;border-radius:6px;font-weight:bold;transition:background-color 0.3s ease-in-out;}
.postcards-pagination a:hover{background-color:#34495e;}
.postcards-pagination .active{background-color:#ffd700;color:#2c3e50;pointer-events:none;}
.visually-hidden{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0;}
.postcards-details-row {display: flex;align-items: flex-start;justify-content: flex-start;gap: 8px;  width: 100%;}
.postcards-details-block {display:flex;flex-direction:column;gap:0;margin-bottom:0;width:100%;}
.compact-lines {margin:0;padding:0;white-space:normal;text-align:left;}
.compact-lines br {display: block;margin: 0;padding: 0;}
.status-unused .postcards-value {display:flex;justify-content:center;align-items:center;min-height:120px;text-align:center;color:#666;}
.postcards-unused-spacer {height:100px; width: 100%;}
.postcards-value-blank {font-size: 1.1rem;color: #666;display: flex;justify-content: center;align-items: center;text-align: center;width: 100%;height: 100%;min-height: 120px;}
.postcards-records-grid {display: grid;gap: 10px;width: 100%;}
.postcards-record-container:hover {background-color:#FFF3A3;}
.postcards-details-container p {font-size: 14px;font-style: italic;margin: 0;padding-top: 0;padding-bottom: 6px;line-height: 1.4;text-align: center;vertical-align: top;}
.visually-hidden {position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0;}
.mmcards-detail-wrapper {width:90%;max-width:1000px;margin:0 auto;padding:20px;background-color:#fff;border-radius:12px;box-shadow:0 4px 12px rgba(0,0,0,0.1);box-sizing:border-box;margin-bottom:10px;}
.mmcards-nav-bar {display:flex;flex-wrap:wrap;gap:20px;justify-content:space-between;margin-bottom:20px;width:100%;}
.mmcards-nav-button {flex:1;text-align:center;background-color:#24304a;color:#fff;text-decoration:none;font-weight:bold;padding:10px 20px;border-radius:6px;transition:background-color 0.2s ease;}
.mmcards-nav-button:hover {background-color:#38446d;}
.mmcards-image-column,.mmcards-metadata-column {flex:1 1 0;}
.mmcards-image-column {display:flex;flex-direction:column;align-items:center;gap:20px;}
.mmcards-metadata-column {display:flex;flex-direction:column;justify-content:space-between;height:100%; font-size: 1.1em;}
.mmcards-metadata-content {flex-grow:1;display:flex;flex-direction:column;justify-content:flex-start;}
.portrait {height:320px;width:auto;max-width:100%;object-fit:contain;display:block;margin:0 auto;border-radius:8px;box-shadow:0 2px 8px rgba(0,0,0,0.1);}
.landscape {width:100%;height:290px;object-fit:contain;display:block;margin:0 auto;border-radius:8px;box-shadow:0 2px 8px rgba(0,0,0,0.1);}
.mmcards-inline-title {font-size:24px;font-weight:bold;color:#fff;background-color:#24304a;margin-bottom:20px;text-align:center;padding:10px 14px;border-radius:6px;}
.mmcards-details {display:flex;flex-direction:column;gap:12px;}
.mmcards-detail-field {display:flex;gap:10px;}
.mmcards-label {font-weight:bold;color:#555;font-size:1.1em;flex-shrink:0;min-width:80px;}
.mmcards-value {color:#333;font-size:1.1em;flex-grow:1;text-align:left;}
.mmcards-back-row {display:flex;justify-content:space-between;align-items:center;width:100%;margin-top:auto;padding-top:20px;border-top:1px solid #ccc;gap:20px;}
.mmcards-id {font-size:0.9em;color:#666;text-align:left;flex:1;}
.mmcards-back-to-search-button {flex:1;text-align:right;background-color:#24304a;color:#fff;text-decoration:none;border-radius:4px;font-weight:bold;padding:10px 20px;transition:background-color 0.2s ease;}
.mmcards-back-to-search-button:hover {background-color:#38446d;}
.postcards-label {font-size: 16px;font-weight: bold;color: #24304a;min-width: 48px;text-align: left;white-space: nowrap;padding-right: 4px;}
.postcards-value, .postcards-value.compact-lines {font-size: 16px;color: #333;text-align: left;margin: 0;padding: 0;flex-grow: 1;word-break: break-word;white-space: normal;}
.postcards-description-spacer {height: 2em;}
.postcards-value-blank {position: absolute;top: 100px;left: 0;right: 0;font-size: 1.1rem;color: #666;text-align: center;}
.postcards-details-container {display: flex;flex-direction: column;justify-content: flex-start;min-height: 160px;position: relative;}
.postcards-unused-spacer {height: calc(1.4em * 2);}
.postcards-description {font-size: 14px;font-style: italic;line-height: 1.4;text-align: center;margin: 0;margin-bottom:1rem;padding: 0;display: -webkit-box;-webkit-line-clamp: 3;-webkit-box-orient: vertical;overflow: hidden;min-height: calc(1.4em * 2);}
.postcards-details-container {display: flex;flex-direction: column;justify-content: flex-start;}
.postcards-details-grid {display: flex;flex-direction: column;gap: 10px;margin-top: 0;padding-top: 0;}
.mmcards-image-column, .mmcards-metadata-column {margin-top: 0;padding-top: 0;}
.mmcards-metadata-content {margin-top: 0;padding-top: 0;}

@media(max-width:768px){
    .mmcards-columns{flex-direction:column;}
    .mmcards-nav-bar{flex-direction:column;align-items:center;}
    .mmcards-back-row{flex-direction:column;align-items:center;gap:10px;}
}

/* ========================================================= */
/* --- 6. CONTACT PAGE STYLING (UNCHANGED) --- */
/* ========================================================= */
.page-contact section {display:none;}
.page-contact .desktop-contact-container {display:flex;justify-content:center;align-items:center;padding:20px;gap:40px;}
.page-contact .desktop-contact-text,.page-contact .desktop-contact-cell {width:40%;color:white;line-height:1.6;}
.page-contact .tablet-contact-container {display:flex;justify-content:center;align-items:center;flex-direction:column;padding:20px;gap:20px;}
.page-contact .tablet-contact-text {width:80%;color:white;line-height:1.6;}
.page-contact .tablet-contact-cell {width:80%;}
.page-contact .mobile-contact-container {display:flex;justify-content:center;align-items:center;flex-direction:column;padding:20px;gap:20px;}
.page-contact .mobile-contact-text {width:90%;color:white;line-height:1.6;}
.page-contact .mobile-contact-cell {width:90%;}
.page-contact .desktop-contact-email-link,.page-contact .tablet-contact-email-link,.page-contact .mobile-contact-email-link {color:white;text-decoration:none;}
.form-title {font-size:1.5em;margin-top:20px;margin-bottom:10px;}
.contact-form {display:flex;flex-direction:column;gap:10px;width:100%;}
.contact-form label {font-weight:bold;color:#e0e0e0;}
.contact-form input[type="text"],.contact-form input[type="email"],.contact-form textarea {padding:10px;border:1px solid #ccc;border-radius:5px;background-color:#38446d;color:white;border:none;}
.contact-form input[type="text"]:focus,.contact-form input[type="email"]:focus,.contact-form textarea:focus {outline:2px solid #ffd700;}
.submit-button {background-color:#ffd700;color:#24304a;font-weight:bold;padding:12px 20px;border:none;border-radius:5px;cursor:pointer;font-size:1em;transition:background-color 0.3s ease;}
.submit-button:hover {background-color:#ffc82a;}
.message-status {padding:15px;border-radius:5px;margin-bottom:20px;text-align:center;font-weight:bold;}
.message-status.success {background-color:#4CAF50;color:white;}
.message-status.error {background-color:#f44336;color:white;}

/* ========================================================= */
/* === GDPR Banner                                       === */
/* ========================================================= */
.cookie-banner {position: fixed; bottom: 0; left: 0; right: 0; background: #1a1a1a; color: #fff; padding: 18px 20px; display: none; z-index: 9999; font-size: 0.95em; box-shadow: 0 -3px 10px rgba(0,0,0,0.35); animation: fadeIn 0.5s ease-out;}
@keyframes fadeIn {from {opacity: 0; transform: translateY(20px);} to {opacity: 1; transform: translateY(0);}}
.cookie-banner {text-align: center;}
.cookie-content {max-width: 650px;margin: 0 auto;}
.cookie-content p {text-align: left;}
.cookie-buttons {margin-top: 12px;text-align: left;}
.cookie-btn {padding: 8px 16px; border: none; cursor: pointer; border-radius: 4px; font-size: 1em; margin-right: 10px;}
.cookie-btn.accept {background: #0073e6; color: #fff;}
.cookie-btn.accept:hover {background: #005bb5;}
.cookie-btn.reject {background: #444; color: #fff;}
.cookie-btn.reject:hover {background: #333;}
.cookie-close {position: absolute; right: 12px; top: 12px; background: transparent; border: none; color: #ccc; font-size: 22px; cursor: pointer;}
.cookie-close:hover {color: #fff;}

@media (max-width: 600px) {
  .cookie-buttons {display: flex; flex-direction: column;} 
  .cookie-btn {margin-bottom: 8px; width: 100%;} 
  .cookie-close {top: 10px; right: 10px;}
}

/* ========================================================= */
/* === 7. RESPONSIVE MEDIA QUERIES (UPDATED FOR SINGLE HEADER) === */
/* ========================================================= */

/* ============================== */
/* === Mobile: max-width 767px === */
/* ============================== */
@media screen and (max-width:767px){
.site-logo{height:25px;}
.page-contact #mobile-contact{display:block;}
.page-contact #tablet-contact,.page-contact #desktop-contact{display:none;}
.footer-nav{display:none;}
.footer-legal-links{display:block;margin-left:0;text-align:left;}
.footer-legal-links a{display:inline-block;margin:0 6px 0 0;}
.about-image-container img{object-fit:contain;height:auto;min-height:unset;}
.carousel-overlay,.carousel-right-overlay{left:50%;right:auto;transform:translate(-50%,-50%);text-align:center;width:90%;max-width:80%;}
.main-content-box{width:90%;margin-right:auto;margin-left:auto;}
.about-bottomleft-box h2{font-size:1.2em;}
.submenu-image-float{float:none;width:100%;max-width:100%;margin:0 auto 1rem auto;}
.submenu-heading,.submenu-layout p{margin-left:0;}
.submenu-two-column{flex-direction:column;}
.submenu-two-column .submenu-image,.submenu-two-column .submenu-text{max-width:100%;}
.desktop-only{display:none;}
.mobile-only{display:block;}
.submenu{position:static;box-shadow:none;border-radius:0;min-width:100%;width:100%;background-color:#1e263a;padding:0;}
.submenu-toggle:checked+.submenu-label+.submenu{display:block;}
.submenu-label{display:block;padding:15px 20px;background-color:#384366;color:white;text-align:left;border-bottom:1px solid #586286;font-size:16px;cursor:pointer;}
.submenu-label:hover{background-color:#4a597a;}
.submenu a{padding-left:30px;background-color:#4a597a;text-decoration:none;border-bottom:none;display:block;}
.submenu li a{padding-left:40px;border-top:1px solid #38446d;}
.has-submenu.open .submenu{display:block;}
.about-heading.mobile-only::after{content:"";position:absolute;bottom:-8px;left:0;width:100%;height:2px;background-color:#6ea0ff;}
.about-heading.mobile-only{position:relative;display:block;text-align:left;margin-bottom:1rem;padding-bottom:1px;}
.carousel-overlay h2,.carousel-right-overlay h2{font-size:1.8em;}
.carousel-overlay p,.carousel-right-overlay p{font-size:1.1em;}
.desktop-search-container{padding:1rem;}
.desktop-category-box{display:flex;flex-direction:column;gap:0.5rem;padding:0;}
.desktop-category-box label{margin:0;padding:0;font-weight:bold;text-align:left;}
.desktop-category-box input,.desktop-category-box select{margin:0;padding:0.5rem;font-size:1rem;width:100%;box-sizing:border-box;}
.form-instruction{font-size:0.9rem;line-height:1.4;}
button[type="submit"]{margin-top:1rem;padding:0.75rem 1.5rem;font-size:1rem;background-color:#ffd700;color:#000;border:none;border-radius:4px;font-weight:bold;}
button[type="submit"]:hover{background-color:#1b253a;color:#fff;}
.postcards-records-grid{grid-template-columns:1fr;}
.desktop-category-box {display: flex;flex-direction: column;padding: 0;}
.desktop-category-box label {margin: 0;padding: 0;font-weight: bold;text-align: left;}
.desktop-category-box input, .desktop-category-box select {margin-bottom: 0.5rem; padding: 0.5rem;font-size: 1rem;width: 100%;box-sizing: border-box;}
}

/* ============================== */
/* === Tablet: 768px – 1023px === */
/* ============================== */
@media screen and (min-width:768px) and (max-width:1023px){
  .site-logo{height:35px;}
  .page-contact #tablet-contact{display:block;}
  .page-contact #mobile-contact,.page-contact #desktop-contact{display:none;}
  .main-content-box{width:50%;margin-right:2%;}
  .about-bottomleft-box h2{font-size:2em;}
  .footer-nav{display:none;}
  .submenu{position:static;box-shadow:none;border-radius:0;min-width:100%;width:100%;background-color:#1e263a;padding:0;}
  .submenu li a{padding-left:40px;border-top:1px solid #38446d;}
  .has-submenu.open .submenu{display:block;}
  .postcards-records-grid{grid-template-columns:repeat(2,1fr);}
}

/* ============================== */
/* === Tablet & Mobile Nav Logic === */
/* ============================== */
@media screen and (max-width:1023px){
  .header-container{flex-direction:row;align-items:center;justify-content:space-between;}
  .menu-icon{display:block;}
  .nav-wrapper{position:absolute;top:60px;left:0;width:100%;transition:transform 0.3s ease-out;transform:translateY(-100%);display:none;}
  .menu-toggle:checked~.nav-wrapper{display:block;transform:translateY(0);z-index:999;}
  .site-nav{width:100%;}
  .main-menu-list{display:flex !important;flex-direction:column;width:100%;background-color:#24304a;box-shadow:0 4px 8px rgba(0,0,0,0.3);}
  .main-menu-list li a{padding:12px 20px;border-top:1px solid #38446d;}
  .has-submenu>a{position:relative;}
  .has-submenu>a::after{content:" \25BC";position:absolute;right:20px;font-size:10px;transition:transform 0.3s;}
  .has-submenu.open>a::after{transform:rotate(180deg);}
  .has-submenu:hover .submenu{display:none;}
  .has-submenu.open .submenu {display: block;position: static; background-color: #1e263a;box-shadow: none;border-radius: 0;padding: 0;}
}

/* ============================== */
/* === Desktop: min-width 1024px === */
/* ============================== */
@media screen and (min-width:1024px){
  .site-logo{height:40px;}
  .mobile-hamburger,#menu-toggle{display:none !important;}
  .site-nav{display:block;transform:translateX(0);position:static;width:auto;height:auto;padding-top:0;box-shadow:none;}
  .main-menu-list{display:flex;flex-direction:row;align-items:center;justify-content:flex-end;}
  .main-menu-list li a{padding:5px 10px;white-space:nowrap;text-align:left;}
  .main-menu-list li a:hover{background-color:#38446d;}
  .has-submenu{position:relative;}
  .has-submenu:hover>.submenu{display:block;}
  .submenu{display:none;position:absolute;top:100%;left:0;background-color:#24304a;padding:10px 0;list-style:none;border-radius:5px;z-index:1000;white-space:nowrap;}
  .submenu a{padding:5px 10px;background-color:transparent;}
  .submenu a:hover{background-color:#38446d;}
  .page-contact #desktop-contact{display:block;}
  .page-contact #tablet-contact,.page-contact #mobile-contact{display:none;}
  .postcards-records-grid{grid-template-columns:repeat(3,1fr);}
}

/* ============================== */
/* === Desktop: min-width 768px === */
/* ============================== */
@media screen and (min-width:768px) {
  .mobile-only {display: none !important;}
}