@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@400;500;600;700;800;900&display=swap');

:root {
    --bg-primary: #0a0a0c;
    --bg-secondary: #131316;
    --bg-tertiary: #1b1b22;
    --accent-gold: #d4af37;
    --accent-gold-rgb: 212, 175, 55;
    --accent-gold-hover: #b89327;
    --text-primary: #fdfdfd;
    --text-secondary: #a0a0ab;
    --text-light: #6c6c7d;
    --border-color: rgba(255, 255, 255, 0.08);
    --border-color-light: rgba(255, 255, 255, 0.04);
    
    --card-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    --card-shadow-hover: 0 20px 40px rgba(212, 175, 55, 0.12);
    --transition-smooth: all 0.35s cubic-bezier(0.25, 0.8, 0.25, 1);
    --transition-fast: all 0.2s ease;
    
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    
    --border-radius-lg: 16px;
    --border-radius-xl: 24px;
    --border-radius-sm: 8px;
    
    --max-width: 1280px;
    --header-height: 80px;
    
    --gold-gradient: linear-gradient(135deg, #ffffff 0%, #d4af37 100%);
    --gold-gradient-hover: linear-gradient(135deg, #ffffff 0%, #aa7c11 100%);
}

/* Dark Mode Variables for Admin */
[data-theme="dark"] {
    --bg-primary: #0a0a0c;
    --bg-secondary: #131316;
    --bg-tertiary: #1b1b22;
    --text-primary: #fdfdfd;
    --text-secondary: #a0a0ab;
    --text-light: #6c6c7d;
    --border-color: rgba(255, 255, 255, 0.08);
    --border-color-light: rgba(255, 255, 255, 0.04);
    --card-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    --card-shadow-hover: 0 20px 40px rgba(212, 175, 55, 0.12);
}

/* Global Reset & Base Styles */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    transition: background-color 0.3s ease, color 0.3s ease;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition-fast);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

button {
    font-family: var(--font-body);
    cursor: pointer;
    border: none;
    background: none;
    outline: none;
    transition: var(--transition-smooth);
}

.container {
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 2rem;
}

/* Common Section Layout */
section {
    padding: 8rem 0;
    position: relative;
}

.section-tag {
    display: block;
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    margin-bottom: 1.25rem;
    color: var(--accent-gold);
    border: none;
    background: none;
    padding: 0;
    border-radius: 0;
}

.section-title {
    font-size: 2.75rem;
    font-weight: 800;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.section-desc {
    font-size: 1.15rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin-bottom: 4rem;
}

/* Premium Button Styling */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 1rem 2rem;
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: 50px;
    position: relative;
    overflow: hidden;
    z-index: 1;
    border: 1px solid transparent;
}

.btn-primary {
    background: var(--gold-gradient);
    color: #0a0a0c;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.25);
    font-weight: 700;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gold-gradient-hover);
    z-index: -1;
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    border-radius: 50px;
}

.btn-primary:hover {
    color: #0a0a0c;
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.4);
    transform: translateY(-2px);
}

.btn-primary:hover::before {
    transform: scaleX(1);
    transform-origin: left;
}

.btn-secondary {
    background-color: transparent;
    border-color: var(--text-primary);
    color: var(--text-primary);
}

.btn-secondary:hover {
    background-color: var(--text-primary);
    color: var(--bg-primary);
    transform: translateY(-2px);
}

.btn-icon-circle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transition: var(--transition-smooth);
}

.btn:hover .btn-icon-circle {
    transform: rotate(45deg);
    background-color: rgba(255, 255, 255, 0.4);
}

/* Header (Хедер) Navigation */
.header {
    height: var(--header-height);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    transition: var(--transition-smooth);
    background-color: rgba(10, 10, 12, 0.75);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-bottom: 1px solid var(--border-color);
}

.header.scrolled {
    height: 70px;
    background-color: rgba(10, 10, 12, 0.9);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
}

.header .container {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.5rem;
    color: var(--text-primary);
    z-index: 1001;
}

.logo span {
    color: var(--accent-gold);
}

.logo img {
    height: 40px;
    width: auto;
}

.nav-menu {
    display: flex;
    align-items: center;
    list-style: none;
    gap: 2.5rem;
}

.nav-link {
    font-size: 0.95rem;
    font-weight: 550;
    color: var(--text-secondary);
    position: relative;
    padding: 0.5rem 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--accent-gold);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.nav-link:hover {
    color: var(--accent-gold);
}

.nav-link:hover::after,
.nav-link.active::after {
    transform: scaleX(1);
    transform-origin: left;
}

.nav-link.active {
    color: var(--accent-gold);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.lang-selector {
    display: flex;
    gap: 0.5rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-light);
}

.lang-btn {
    padding: 0.25rem 0.5rem;
    border-radius: var(--border-radius-sm);
}

.lang-btn.active {
    color: var(--accent-gold);
    background-color: rgba(212, 175, 55, 0.05);
}

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    width: 30px;
    z-index: 1001;
}

.menu-toggle span {
    display: block;
    width: 100%;
    height: 2px;
    background-color: var(--text-primary);
    transition: var(--transition-smooth);
}

/* Hero Section */
.hero {
    height: 100vh;
    min-height: 700px;
    position: relative;
    display: flex;
    align-items: center;
    padding: 0;
    color: #ffffff;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 25%;
    filter: brightness(0.65); /* Increased brightness for better visibility of presidents */
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Lightened upper gradient to reveal photo, keeping bottom darker for contrast */
    background: linear-gradient(to bottom, rgba(0,0,0,0.15) 0%, rgba(0,0,0,0.25) 40%, rgba(0,0,0,0.75) 100%);
    z-index: 2;
}

.hero .container {
    position: relative;
    z-index: 3;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding-bottom: 6rem;
}

/* Adaptive/Responsive Hero Section for Home Page */
.hero-section {
    position: relative;
    height: 100vh;
    min-height: 700px;
    display: flex;
    align-items: center;
    overflow: hidden;
    color: #ffffff;
    background-color: #0b0b0c;
    padding: 0;
}

.hero-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    overflow: hidden;
}

.hero-backdrop img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 25%;
    filter: brightness(0.5); /* Unblurred on PC, dark enough for readability */
    transition: filter 0.3s ease, transform 0.3s ease;
}

.hero-backdrop-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0,0,0,0.15) 0%, rgba(0,0,0,0.25) 40%, rgba(0,0,0,0.75) 100%);
    z-index: 2;
}

.hero-container {
    position: relative;
    z-index: 3;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-end; /* Quotes at the bottom */
    padding-bottom: 6rem;
    width: 100%;
}

.hero-photo-wrapper {
    display: none; /* Hidden on PC */
}

.hero-title-area {
    margin-bottom: 3.5rem;
    max-width: 800px;
    animation: fadeInUp 1s ease;
}

.hero-title-area h1 {
    font-size: 4rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    line-height: 1.1;
    color: #ffffff;
}

.hero-title-area h1 span {
    color: var(--accent-gold);
}

.hero-title-area p {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 400;
}

/* Quote Cards Grid inside Hero */
.quotes-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    width: 100%;
    animation: fadeInUp 1s ease 0.2s both;
}

.quote-card {
    background: rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius-xl);
    padding: 2rem;
    display: flex;
    gap: 1.5rem;
    align-items: center;
    transition: var(--transition-smooth);
    margin-bottom: 0;
}

.quote-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(212, 175, 55, 0.4);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
}

.quote-img-wrapper {
    flex-shrink: 0;
    width: 100px;
    height: 100px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid rgba(255, 255, 255, 0.2);
    transition: var(--transition-smooth);
}

.quote-card:hover .quote-img-wrapper {
    border-color: var(--accent-gold);
    transform: scale(1.05);
}

.quote-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.quote-content {
    display: flex;
    flex-direction: column;
}

.quote-text {
    font-size: 1.05rem;
    font-style: italic;
    line-height: 1.6;
    margin-bottom: 1rem;
    color: #ffffff;
}

.quote-author {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--accent-gold);
    display: block;
}

.quote-title {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.6);
    margin-top: 0.15rem;
    display: block;
}

/* Block 1: Leadership Profiles */
.leadership-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem;
}

.profile-card {
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-xl);
    overflow: hidden;
    transition: var(--transition-smooth);
    display: flex;
    flex-direction: column;
    box-shadow: var(--card-shadow);
}

.profile-card:hover {
    transform: translateY(-8px);
    border-color: rgba(212, 175, 55, 0.2);
    box-shadow: var(--card-shadow-hover);
}

.profile-img-container {
    position: relative;
    height: 420px;
    width: 100%;
    overflow: hidden;
}

.profile-img-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-smooth);
}

#profileMahmadzoir .profile-img-container img {
    object-position: 50% 12%; /* Pulls portrait down, resolving head-cut layout anomalies */
}

.profile-card:hover .profile-img-container img {
    transform: scale(1.04);
}

.profile-overlay-badge {
    position: absolute;
    bottom: 1.5rem;
    left: 1.5rem;
    background-color: var(--accent-gold);
    color: #ffffff;
    padding: 0.5rem 1.25rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    z-index: 10;
}

.profile-info {
    padding: 2.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.profile-name {
    font-size: 1.85rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.profile-role {
    font-size: 0.95rem;
    color: var(--accent-gold);
    font-weight: 600;
    margin-bottom: 1.25rem;
}

.profile-bio {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.profile-achievements {
    border-top: 1px solid var(--border-color);
    padding-top: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.achievement-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.achievement-icon {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: var(--accent-gold);
    flex-shrink: 0;
}

/* Block 2: Decree Section */
.decree-section {
    background-color: var(--bg-secondary);
}

.decree-card {
    background-color: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-xl);
    padding: 4rem;
    box-shadow: var(--card-shadow);
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.decree-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 6px;
    height: 100%;
    background-color: var(--accent-gold);
}

.decree-content h3 {
    font-size: 2.25rem;
    margin-bottom: 1.5rem;
}

.decree-date {
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--accent-gold);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.decree-text {
    color: var(--text-secondary);
    font-size: 1.05rem;
    margin-bottom: 2.5rem;
    line-height: 1.7;
}

/* High Fidelity Interactive Document Mockup */
.document-mockup {
    background: var(--bg-tertiary);
    border: 1px dashed rgba(255, 255, 255, 0.15);
    padding: 3rem 2.5rem;
    border-radius: 4px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.25);
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: var(--transition-smooth);
    min-height: 380px;
    cursor: pointer;
}

.document-mockup:hover {
    transform: scale(1.02);
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.08);
}

.doc-watermark {
    position: absolute;
    width: 140px;
    height: 140px;
    opacity: 0.04;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
}

.doc-header {
    text-align: center;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.7rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
    border-bottom: 2px double #e0e0e0;
    padding-bottom: 0.75rem;
    width: 100%;
}

.doc-title {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    color: #222222;
    text-align: center;
    margin-bottom: 1.5rem;
    line-height: 1.4;
}

.doc-lines {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    margin-bottom: 2rem;
}

.doc-line {
    height: 6px;
    background-color: #f0f0f0;
    border-radius: 3px;
    width: 100%;
}

.doc-line.half { width: 60%; }
.doc-line.short { width: 40%; margin: 0 auto; }

.doc-footer {
    margin-top: auto;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}

.doc-stamp {
    width: 70px;
    height: 70px;
    border: 2px dashed rgba(212, 175, 55, 0.25);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(212, 175, 55, 0.3);
    font-size: 0.55rem;
    font-weight: 700;
    text-transform: uppercase;
    transform: rotate(-15deg);
    font-family: var(--font-heading);
}

.doc-sign {
    border-top: 1px solid rgba(0, 0, 0, 0.15);
    padding-top: 0.25rem;
    font-size: 0.6rem;
    color: #666666;
    text-align: center;
    width: 100px;
}

/* Block 3: Media Gallery & Partnership */
.media-partnership-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 3.5rem;
}

.media-block {
    position: relative;
    border-radius: var(--border-radius-xl);
    overflow: hidden;
    box-shadow: var(--card-shadow);
    height: 480px;
}

.media-block img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-smooth);
}

.media-block:hover img {
    transform: scale(1.03);
}

.media-badge {
    position: absolute;
    top: 1.5rem;
    left: 1.5rem;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    color: var(--text-primary);
    padding: 0.5rem 1.25rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
}

.partnership-block {
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-xl);
    padding: 3.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    box-shadow: var(--card-shadow);
    transition: var(--transition-smooth);
}

.partnership-block:hover {
    border-color: rgba(212, 175, 55, 0.15);
    box-shadow: var(--card-shadow-hover);
}

.partnership-block h3 {
    font-size: 2.25rem;
    margin-bottom: 1.5rem;
    line-height: 1.3;
}

.partnership-block p {
    color: var(--text-secondary);
    font-size: 1.05rem;
    margin-bottom: 2.5rem;
}

/* Block 4: Contacts & Map Section */
.contacts-section {
    background-color: var(--bg-secondary);
}

.contacts-grid {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    gap: 4rem;
}

.contacts-info-card {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

.contact-item {
    display: flex;
    gap: 1.25rem;
}

.contact-icon-wrapper {
    flex-shrink: 0;
    width: 54px;
    height: 54px;
    background-color: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-gold);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.02);
    font-size: 1.25rem;
}

.contact-details h4 {
    font-size: 1.1rem;
    margin-bottom: 0.35rem;
    color: var(--text-primary);
}

.contact-details p,
.contact-details a {
    font-size: 0.95rem;
    color: var(--text-secondary);
}

.contact-details a:hover {
    color: var(--accent-gold);
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.social-btn {
    width: 44px;
    height: 44px;
    background-color: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    transition: var(--transition-smooth);
}

.social-btn:hover {
    background-color: var(--accent-gold);
    color: #ffffff;
    border-color: var(--accent-gold);
    transform: translateY(-3px);
}

/* Map Container with openstreetmap style */
.map-container {
    height: 100%;
    min-height: 450px;
    border-radius: var(--border-radius-xl);
    overflow: hidden;
    border: 1px solid var(--border-color);
    box-shadow: var(--card-shadow);
    position: relative;
}

.map-container iframe {
    width: 100%;
    height: 100%;
    border: none;
    filter: invert(90%) hue-rotate(180deg) brightness(0.85) contrast(1.2);
    transition: opacity 0.3s ease;
}

/* High fidelity styled map placeholder just in case */
.map-styled-placeholder {
    width: 100%;
    height: 100%;
    background-color: #e5e3df;
    position: relative;
    overflow: hidden;
}

/* Footer (Футер) */
.footer {
    background-color: #0b0b0c;
    color: #ffffff;
    padding: 5rem 0 2.5rem 0;
    border-top: 4px solid var(--accent-gold);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1.5fr;
    gap: 3rem;
    margin-bottom: 4rem;
}

.footer-col h4 {
    font-size: 1.15rem;
    margin-bottom: 1.75rem;
    position: relative;
    padding-bottom: 0.75rem;
    color: #ffffff;
}

.footer-col h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 35px;
    height: 2px;
    background-color: var(--accent-gold);
}

.footer-desc {
    color: rgba(255, 255, 255, 0.6);
    margin-top: 1rem;
    margin-bottom: 2rem;
    font-size: 0.9rem;
}

.footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.footer-links a {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
}

.footer-links a:hover {
    color: #ffffff;
    padding-left: 0.35rem;
}

.footer-contacts {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.footer-contact-item {
    display: flex;
    gap: 1rem;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
}

.footer-contact-item i {
    color: var(--accent-gold);
    flex-shrink: 0;
    margin-top: 0.25rem;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 2rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.4);
}

.footer-bottom-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.footer-bottom-links {
    display: flex;
    gap: 2rem;
}

.footer-bottom-links a:hover {
    color: #ffffff;
}

.footer-dev-credit {
    text-align: center;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.35);
    width: 100%;
}

.footer-dev-credit a {
    color: var(--accent-gold);
    font-weight: 700;
    text-decoration: none;
    transition: var(--transition-smooth);
}

.footer-dev-credit a:hover {
    text-decoration: underline;
    color: #ffffff;
}

/* Dynamic Bento-Grid Layouts for News & Sponsors */
.bento-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.bento-card {
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-xl);
    padding: 2.25rem;
    transition: var(--transition-smooth);
    box-shadow: var(--card-shadow);
}

.bento-card:hover {
    transform: translateY(-5px);
    border-color: rgba(212, 175, 55, 0.2);
    box-shadow: var(--card-shadow-hover);
}

.bento-card-large {
    grid-column: span 2;
}

/* Modals (Popups) */
.modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.modal-backdrop.active {
    opacity: 1;
    pointer-events: auto;
}

.modal-window {
    background-color: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-xl);
    max-width: 600px;
    width: 90%;
    padding: 3rem;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.25);
    position: relative;
    transform: scale(0.9);
    transition: transform 0.35s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.modal-backdrop.active .modal-window {
    transform: scale(1);
}

.modal-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    font-size: 1.5rem;
    color: var(--text-light);
}

.modal-close:hover {
    color: var(--accent-gold);
}

/* Form Styles */
.form-group {
    margin-bottom: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-label {
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-secondary);
}

.form-control {
    width: 100%;
    padding: 1rem 1.25rem;
    border-radius: var(--border-radius-sm);
    border: 1px solid var(--border-color);
    background-color: var(--bg-secondary);
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 0.95rem;
    transition: var(--transition-fast);
}

.form-control:focus {
    border-color: var(--accent-gold);
    background-color: var(--bg-primary);
    box-shadow: 0 0 0 4px rgba(212, 175, 55, 0.06);
    outline: none;
}

/* Administrative Console (admin.html) */
.admin-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    min-height: 100vh;
    background-color: var(--bg-secondary);
}

.admin-sidebar {
    background-color: var(--bg-primary);
    border-right: 1px solid var(--border-color);
    padding: 2rem 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.admin-nav {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.admin-nav-item button {
    width: 100%;
    text-align: left;
    padding: 1rem 1.25rem;
    border-radius: var(--border-radius-sm);
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    transition: var(--transition-fast);
}

.admin-nav-item button:hover {
    color: var(--text-primary);
    background-color: var(--bg-tertiary);
}

.admin-nav-item.active button {
    color: #ffffff;
    background-color: var(--accent-gold);
}

.admin-content {
    padding: 3rem;
    overflow-y: auto;
}

.admin-card {
    background-color: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-lg);
    padding: 2rem;
    box-shadow: var(--card-shadow);
    margin-bottom: 2rem;
}

.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2.5rem;
}

.admin-badge-secure {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background-color: rgba(46, 204, 113, 0.1);
    color: #2ecc71;
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 700;
}

/* Security Meter Widget */
.security-meter {
    height: 6px;
    width: 100%;
    background-color: var(--bg-tertiary);
    border-radius: 3px;
    overflow: hidden;
    position: relative;
    margin-top: 0.5rem;
}

.security-meter-bar {
    height: 100%;
    width: 100%;
    background-color: #2ecc71;
    transition: width 0.4s ease;
}

/* Security logs table */
.admin-table-wrapper {
    overflow-x: auto;
    width: 100%;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    font-size: 0.9rem;
}

.admin-table th,
.admin-table td {
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--border-color);
}

.admin-table th {
    font-weight: 700;
    color: var(--text-primary);
    background-color: var(--bg-tertiary);
}

.admin-table tr:hover td {
    background-color: var(--border-color-light);
}

.log-status {
    display: inline-block;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 700;
}

.log-status.success {
    background-color: rgba(46, 204, 113, 0.1);
    color: #2ecc71;
}

.log-status.warning {
    background-color: rgba(241, 196, 15, 0.1);
    color: #f1c40f;
}

.log-status.danger {
    background-color: rgba(231, 76, 60, 0.1);
    color: #e74c3c;
}

/* Rate limit message */
.security-warning-banner {
    background-color: rgba(231, 76, 60, 0.08);
    border: 1px solid rgba(231, 76, 60, 0.15);
    color: #e74c3c;
    padding: 1rem 1.5rem;
    border-radius: var(--border-radius-sm);
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

/* Keyframes */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Responsive Breakpoints */
@media (max-width: 1024px) {
    .leadership-grid,
    .decree-card,
    .media-partnership-grid,
    .contacts-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .decree-card {
        padding: 3rem;
    }
    
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .bento-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .bento-card-large {
        grid-column: span 2;
    }
}

@media (max-width: 768px) {
    html {
        font-size: 15px;
    }
    
    :root {
        --header-height: 70px;
    }
    
    .section-title {
        font-size: 2.25rem;
    }
    
    .hero-title-area h1 {
        font-size: 2.75rem;
    }
    
    .hero-section {
        height: auto;
        min-height: 100vh;
        padding: calc(var(--header-height) + 2rem) 0 3rem 0;
        display: flex;
        align-items: center;
    }

    .hero-backdrop img {
        filter: blur(15px) brightness(0.35);
        transform: scale(1.1);
    }

    .hero-backdrop-overlay {
        display: none;
    }

    .hero-container {
        height: auto;
        justify-content: flex-start;
        padding-bottom: 0;
        display: flex;
        flex-direction: column;
        gap: 2.5rem;
    }

    .hero-photo-wrapper {
        display: block;
        position: relative;
        border-radius: var(--border-radius-xl);
        overflow: hidden;
        box-shadow: 0 20px 40px rgba(0,0,0,0.55);
        border: 1px solid rgba(255, 255, 255, 0.1);
        background-color: rgba(0, 0, 0, 0.4);
        max-width: 900px;
        margin: 0 auto;
        width: 100%;
    }

    .hero-foreground-img {
        width: 100%;
        height: auto;
        display: block;
        max-height: 480px;
        object-fit: contain;
        margin: 0 auto;
    }

    .quotes-grid {
        grid-template-columns: 1fr;
    }
    
    .menu-toggle {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        top: var(--header-height);
        left: 0;
        width: 100%;
        height: calc(100vh - var(--header-height));
        background-color: var(--bg-primary);
        flex-direction: column;
        padding: 3rem 2rem;
        gap: 2rem;
        align-items: flex-start;
        transform: translateX(100%);
        transition: var(--transition-smooth);
        border-top: 1px solid var(--border-color);
        overflow-y: auto;
    }
    
    .nav-menu.active {
        transform: translateX(0);
    }
    
    .header-actions {
        margin-right: 1.5rem;
    }
    
    .profile-img-container {
        height: 340px;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
    
    .footer-bottom {
        gap: 1rem;
    }
    
    .footer-bottom-row {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .footer-dev-credit {
        text-align: center;
    }
    
    .admin-layout {
        grid-template-columns: 1fr;
    }
    
    .admin-sidebar {
        border-right: none;
        border-bottom: 1px solid var(--border-color);
    }
    
    .bento-grid {
        grid-template-columns: 1fr;
    }
    
    .bento-card-large {
        grid-column: span 1;
    }
}

/* ==========================================================================
   Section Background Watermark Styles
   ========================================================================== */
.section-header-centered {
    position: relative;
    text-align: center;
    margin-bottom: 5rem;
    z-index: 10;
}

.section-title-wrapper {
    position: relative;
    display: inline-block;
    width: 100%;
    margin-bottom: 1.5rem;
    padding: 2.5rem 0; /* Space for the massive watermark */
}

.section-bg-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-family: var(--font-heading);
    font-size: clamp(1.8rem, 6.5vw, 8.5rem); /* Dynamic responsive sizing preventing watermark overflow */
    font-weight: 900; /* Extra bold */
    text-transform: uppercase;
    letter-spacing: -0.01em; /* Tight letter spacing for premium look */
    color: var(--text-primary);
    opacity: 0.045; /* Highly elegant, subtle watermark */
    z-index: 1;
    pointer-events: none;
    user-select: none;
    white-space: nowrap;
    line-height: 1;
}

.section-title {
    font-size: 2.75rem;
    font-weight: 800;
    margin-bottom: 0;
    color: var(--text-primary);
    position: relative;
    z-index: 2; /* Float above the watermark */
}

.section-title span {
    color: var(--accent-gold);
}

/* Dark Mode adaptation for watermarks */
[data-theme="dark"] .section-bg-text {
    opacity: 0.025;
}

@media (max-width: 768px) {
    .section-title-wrapper {
        padding: 1.5rem 0;
    }
    .section-header-centered {
        margin-bottom: 3.5rem;
    }
}

/* Full adaptive mobile layout & typography enhancement */
@media (max-width: 480px) {
    .section-bg-text {
        font-size: clamp(1.2rem, 5.5vw, 2.5rem) !important;
        white-space: normal !important;
        text-align: center !important;
        width: 100% !important;
    }
    .decree-card {
        padding: 1.5rem !important;
        gap: 2rem !important;
    }
    .document-mockup {
        padding: 2rem 1.5rem !important;
        min-height: auto !important;
    }
    .profile-info {
        padding: 1.5rem !important;
    }
    .hero-title-area h1 {
        font-size: 2.2rem !important;
        line-height: 1.25 !important;
    }
    .section-title {
        font-size: 1.85rem !important;
    }
    .profile-name {
        font-size: 1.5rem !important;
    }
    .profile-role {
        font-size: 0.85rem !important;
    }
    .admin-card {
        padding: 1.5rem !important;
    }
    .admin-nav {
        flex-direction: row !important;
        flex-wrap: wrap !important;
        gap: 0.5rem !important;
    }
    .admin-nav-item button {
        padding: 0.5rem 0.75rem !important;
        font-size: 0.8rem !important;
    }
}

/* ==========================================================================
   About Page Custom Layout Styles
   ========================================================================== */
.about-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 4.5rem;
    align-items: center;
}

.about-team-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4.5rem;
    align-items: center;
}

.timeline-container {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
    padding: 2rem 0;
}

.timeline-line {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 100%;
    background-color: var(--border-color);
    top: 0;
    z-index: 1;
}

.timeline-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    margin-bottom: 4.5rem;
    position: relative;
    z-index: 2;
}

.timeline-row.last-row {
    margin-bottom: 2rem;
}

.timeline-col-left {
    text-align: right;
    padding-right: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-end;
}

.timeline-col-right {
    text-align: left;
    padding-left: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
}

.timeline-dot {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background-color: var(--accent-gold);
    border: 4px solid var(--bg-secondary);
    z-index: 3;
    box-shadow: 0 0 0 4px rgba(212, 175, 55, 0.15);
}

@media (max-width: 1024px) {
    .about-grid,
    .about-team-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
}

@media (max-width: 768px) {
    .timeline-line {
        left: 15px;
    }
    .timeline-row {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        margin-bottom: 3.5rem;
        padding-left: 45px;
    }
    .timeline-col-left,
    .timeline-col-right {
        text-align: left;
        align-items: flex-start;
        padding-left: 0;
        padding-right: 0;
    }
    .timeline-dot {
        left: 15px;
        top: 10px;
        transform: translate(-50%, 0);
    }
}

/* ==========================================================================
   Partners Carousel Styles
   ========================================================================== */
.partners-carousel-wrapper {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 50px;
}

.partners-carousel-track-container {
    overflow: hidden;
    width: 100%;
}

.partners-carousel-track {
    display: flex;
    gap: 2rem;
    transition: transform 0.5s ease-in-out;
    will-change: transform;
}

.partners-carousel-track .bento-card {
    flex: 0 0 calc(25% - 1.5rem);
    box-sizing: border-box;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
}

.carousel-btn:hover {
    background: var(--accent-gold);
    color: var(--bg-primary);
    border-color: var(--accent-gold);
}

.carousel-btn.prev-btn {
    left: 0;
}

.carousel-btn.next-btn {
    right: 0;
}

@media (max-width: 1024px) {
    .partners-carousel-track .bento-card {
        flex: 0 0 calc(50% - 1rem);
    }
}

@media (max-width: 600px) {
    .partners-carousel-track .bento-card {
        flex: 0 0 100%;
    }
    .partners-carousel-wrapper {
        padding: 0 40px;
    }
    .carousel-btn {
        width: 36px;
        height: 36px;
    }
}

/* Document Display & Lightbox Modal styles */
.decree-cards-container {
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.doc-photo-wrapper {
    position: relative;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: var(--bg-tertiary);
    border: 1px dashed rgba(255, 255, 255, 0.15);
    border-radius: var(--border-radius-lg);
    padding: 1.5rem;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.25);
    transition: var(--transition-smooth);
    min-height: 380px;
    overflow: hidden;
}

.doc-photo-wrapper:hover {
    transform: scale(1.02);
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.35);
}

.doc-photo {
    max-width: 100%;
    max-height: 420px;
    object-fit: contain;
    border-radius: 4px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    cursor: zoom-in;
    transition: transform 0.3s ease;
}

.doc-photo:hover {
    transform: scale(1.02);
}

/* Lightbox Modal custom sizing */
.doc-lightbox-window {
    max-width: 800px !important;
    width: 90% !important;
    padding: 1.5rem !important;
    background-color: #0b0c10 !important;
    border: 1px solid var(--border-color) !important;
}

.lightbox-image-container {
    width: 100%;
    max-height: 80vh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.lightbox-image-container img {
    max-width: 100%;
    max-height: 75vh;
    object-fit: contain;
    border-radius: 4px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}



