@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@700;800;900&family=Outfit:wght@300;400;600;800&display=swap');

:root {
    --primary-orange: #f77534;
    --primary-grey: #2c2e30;
    --bg-color: #f4f7f6;
    --card-bg: #ffffff;
    --text-main: #4a4d50;
    --text-muted: #717375;
    --border-color: rgba(0, 0, 0, 0.05);
    --shadow-sm: 0 4px 20px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 12px 40px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 20px 60px rgba(0, 0, 0, 0.1);

    --font-main: 'Outfit', sans-serif;
    --font-heading: 'Montserrat', sans-serif;

    font-family: var(--font-main);
    color: var(--text-main);
    background-color: var(--bg-color);
    -webkit-font-smoothing: antialiased;
    margin: 0;
    padding: 0;
}

body.paper-layout {
    background: url('../img/background.png') no-repeat center center fixed !important;
    background-size: cover !important;
}


*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* --- Animations --- */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Page load global animations */
.page-container h1, .site-title, .page-title, .hero-title {
    animation: fadeInDown 0.8s cubic-bezier(0.16, 1, 0.3, 1) ease forwards;
}

/* --- Section Divider --- */
.section-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 10%;
    /* More breathing room */
    gap: 2rem;
}

.section-divider::before,
.section-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: linear-gradient(to right, transparent, rgba(0, 0, 0, 0.08));
}

.section-divider::after {
    background: linear-gradient(to left, transparent, rgba(0, 0, 0, 0.08));
}

.divider-diamond {
  width: 10px;
  height: 10px;
  border: 2px solid var(--primary-orange);
  transform: rotate(45deg);
  opacity: 0.8;
  animation: diamond-pulse 3s infinite ease-in-out;
}

@keyframes diamond-pulse {
  0%, 100% { transform: rotate(45deg) scale(1); opacity: 0.8; }
  50% { transform: rotate(45deg) scale(1.2); opacity: 1; box-shadow: 0 0 15px rgba(247, 117, 52, 0.3); }
}

/* --- Paper Layout --- */
.paper-layout .page-container {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    padding: 2rem 0;
}

.paper-layout .content-wrapper {
    background: white;
    width: 85%; /* Reduced from 90% */
    max-width: 1100px; /* Reduced from 1200px */
    min-height: 85vh;
    padding: 0;
    box-shadow: 0 40px 100px rgba(0,0,0,0.15);
    border-radius: 12px;
    position: relative;
    animation: fadeIn 1s ease;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.paper-layout header,
.paper-layout nav,
.paper-layout main,
.paper-layout .main-content {
    padding-left: 4rem;
    padding-right: 4rem;
}

.paper-layout main,
.paper-layout .main-content {
    padding-top: 3rem;
    padding-bottom: 0;
}

.paper-layout header:first-of-type {
    border-radius: 12px 12px 0 0;
    padding-top: 2rem;
}

.paper-layout .site-footer {
    background: #111;
    color: white;
    padding: 4rem 5rem;
    margin-top: auto;
    margin-left: -4rem;
    margin-right: -4rem;
    width: calc(100% + 8rem);
    border-radius: 0 0 12px 12px;
    box-sizing: border-box;
}

.paper-layout .partners-section {
    width: calc(100% + 8rem);
    margin-left: -4rem;
    margin-right: -4rem;
    margin-top: 4rem;
    margin-bottom: 0;
    text-align: center;
    padding: 0; /* REMOVED ALL PADDINGS TO TOUCH FOOTER AND EDGES */
    background: white;
}

.paper-layout .partners-banner {
    width: 100%; /* FORCED 100% TO TOUCH EDGES */
    display: block;
}

.footer-logo {
    width: 100px;
    height: auto;
    display: block;
    margin-bottom: 1.5rem;
    border-radius: 8px;
    background: white;
    padding: 8px;
}

/* --- Premium Admin Login Redesign --- */
.login-split {
    display: flex;
    min-height: 80vh;
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
}

.login-brand-side {
    flex: 1;
    background: linear-gradient(135deg, var(--primary-orange) 0%, #ff9a6a 100%);
    padding: 4rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    color: white;
    position: relative;
    overflow: hidden;
}

.login-brand-side::after {
    content: '';
    position: absolute;
    top: -20%;
    right: -20%;
    width: 300px;
    height: 300px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
}

.login-form-side {
    flex: 1.2;
    padding: 4rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: #fdfdfd;
}

.glass-card {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 3rem;
    border-radius: 16px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.05);
}

.premium-input-group { margin-bottom: 2rem; position: relative; }
.premium-input {
    width: 100%;
    padding: 1.2rem;
    background: white;
    border: 2px solid #f0f0f0;
    border-radius: 8px;
    font-size: 1rem;
    transition: 0.3s;
}
.premium-input:focus {
    border-color: var(--primary-orange);
    box-shadow: 0 0 0 4px rgba(247, 117, 52, 0.1);
    outline: none;
}

.premium-btn {
    width: 100%;
    padding: 1.2rem;
    background: var(--primary-orange);
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 2px;
    cursor: pointer;
    transition: 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.premium-btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(247, 117, 52, 0.3);
}

@media (max-width: 900px) {
    .login-split { flex-direction: column; }
    .login-brand-side { padding: 2rem; min-height: 200px; }
    .login-form-side { padding: 2rem; }
}

.paper-layout .partners-banner {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
}

/* --- Header --- */
.main-header {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    padding: 2rem 2rem 1rem;
    background: white;
}

.header-brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    text-decoration: none;
}

.site-logo {
    width: 80px;
    height: auto;
}

.site-title {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 900;
    color: #111;
    letter-spacing: -0.02em;
    max-width: 700px;
    line-height: 1.1;
    text-transform: uppercase;
    text-align: center;
}

/* --- Navigation --- */
.main-nav {
    border-top: 1px solid rgba(0, 0, 0, 0.06);
    border-bottom: 3px solid var(--primary-orange);
    padding: 0;
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px) saturate(180%);
    -webkit-backdrop-filter: blur(12px) saturate(180%);
    transition: all 0.3s ease;
}

.main-nav.scrolled {
    box-shadow: 0 6px 25px rgba(0,0,0,0.08);
}

.nav-list {
    display: flex;
    justify-content: center;
    list-style: none;
    gap: 0;
    padding: 0;
    margin: 0;
}

.nav-link {
    display: block;
    padding: 1rem 1.8rem;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.82rem;
    color: #444;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    transition: all 0.3s ease;
    position: relative;
}

.nav-link:hover {
    color: var(--primary-orange);
}

/* --- Dropdown Menu --- */
.dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background: white;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    border-radius: 8px;
    padding: 1rem 0;
    min-width: 280px;
    opacity: 0;
    visibility: hidden;
    z-index: 1000;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    list-style: none;
    border: 1px solid rgba(0,0,0,0.05);
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.dropdown-link {
    display: block;
    padding: 0.8rem 1.5rem;
    color: #444;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: all 0.2s;
}

.dropdown-link:hover {
    color: var(--primary-orange);
    background: rgba(247, 117, 52, 0.03);
    padding-left: 1.8rem;
}

/* --- Content Slider --- */
.main-slider {
    width: 100%;
    position: relative;
    overflow: hidden;
    background: white;
    /* Unified to white */
    min-height: 480px;
}

.slider-container {
    display: flex;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    height: 100%;
}

/* Navigation Arrows */
.slider-arrow {
    position: absolute;
    top: 65%;
    /* Adjusted to center on the image box */
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background: white;
    color: #1a1c1e;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.slider-arrow:hover {
    background: var(--primary-orange);
    color: white;
    transform: translateY(-50%) scale(1.1);
}

.slider-arrow.prev {
    left: 30px;
}

.slider-arrow.next {
    right: 30px;
}

.slide-item {
    min-width: 100%;
    padding: 3rem 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
}

.slide-content-box {
    width: 70%;
    aspect-ratio: 21/9;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    margin: 0 auto;
    background-size: cover;
    background-position: center;
    border: 1px solid #eee;
}

/* ... Slider Elements ... */
.slide-category {
    font-size: 0.8rem;
    font-weight: 800;
    text-transform: uppercase;
    color: var(--primary-orange);
    letter-spacing: 0.15em;
    margin-bottom: 0.5rem;
}

.slide-title {
    font-family: var(--font-heading);
    font-size: 2rem;
    /* Much smaller as requested */
    font-weight: 800;
    color: #1a1c1e;
    margin-bottom: 2rem;
    text-transform: uppercase;
}

.slide-desc {
    display: none;
    /* Removed as it part of the 'too big' feel */
}

.btn-more {
    display: none;
    /* Removed from slider for simplicity */
}

.btn-more {
    display: inline-block;
    background: var(--primary-orange);
    color: white;
    padding: 1rem 2.5rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-size: 0.75rem;
    transition: all 0.3s ease;
    z-index: 2;
    position: relative;
}

.btn-more:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(247, 117, 52, 0.3);
}

/* --- News Section Refinement --- */
.news-section {
  padding: 5rem 2rem;
  background: #f8fafb; /* Restored grey background */
  text-align: center;
  border-top: 1px solid rgba(0,0,0,0.03);
}

.news-card {
    background: white;
    /* Unified from fdfdfd */
    border-radius: 4px;
    /* More architectural */
    overflow: hidden;
    text-align: left;
    transition: all 0.4s ease;
    border: 1px solid #f0f0f0;
}

.news-card:hover {
    transform: translateY(-8px);
    border-color: var(--primary-orange);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.06);
}

.news-img-wrap {
    width: 100%;
    height: 240px;
    overflow: hidden;
}

.news-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.news-card:hover .news-img {
    transform: scale(1.05);
}

.news-body {
    padding: 2.5rem 2rem;
}

.news-date-row {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.news-dot {
    width: 6px;
    height: 6px;
    background: var(--primary-orange);
    border-radius: 50%;
}

.news-date {
    font-size: 0.75rem;
    font-weight: 800;
    color: #a0a2a5;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.news-card-title {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 800;
    color: #1a1c1e;
    line-height: 1.4;
    margin-bottom: 1.5rem;
}

.btn-read-more {
    font-size: 0.75rem;
    font-weight: 800;
    color: var(--primary-orange);
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-read-more::after {
    content: '→';
    transition: transform 0.3s ease;
}

.news-card:hover .btn-read-more::after {
    transform: translateX(5px);
}

/* --- News Grid --- */
.news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
    max-width: 1100px;
    margin: 0 auto;
}

.news-grid {
  display: grid;
  grid-template-columns: 1fr;
  max-width: 800px;
  margin: 0 auto;
}

.news-empty-state {
  padding: 4rem 2rem;
  background: white;
  border: 1px dashed #ddd;
  border-radius: 12px;
  color: #888;
  font-style: italic;
  font-size: 1.1rem;
}

.news-card {
    background: white;
    /* Unified from fdfdfd */
    border-radius: 4px;
    /* More architectural */
    overflow: hidden;
    text-align: left;
    transition: all 0.4s ease;
    border: 1px solid #f0f0f0;
}

.news-card:hover {
    transform: translateY(-8px);
    border-color: var(--primary-orange);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.06);
}

.news-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.news-card:hover .news-img {
    transform: scale(1.05);
}

.news-body {
    padding: 2.5rem 2rem;
}

.news-date {
    font-size: 0.75rem;
    font-weight: 800;
    color: var(--primary-orange);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 0.75rem;
    display: block;
}

.news-card-title {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 800;
    color: #1a1c1e;
    line-height: 1.4;
}

/* --- Content Area --- */
.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 0;
}

/* --- Dashboard (Keep as is for now) --- */
.dashboard-container {
    width: 100%;
    max-width: 1000px;
    background: var(--card-bg);
    border-radius: 24px;
    padding: 3rem;
    box-shadow: 0 24px 60px rgba(64, 66, 68, 0.08);
    border: 1px solid var(--border-color);
}

.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 3rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-color);
}

.dashboard-title {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--primary-grey);
}

.btn-logout {
    padding: 0.6rem 1.2rem;
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
    border: none;
    border-radius: 8px;
    font-size: 0.75rem;
    font-weight: 700;
    cursor: pointer;
}

/* --- Services Section --- */
.services-section {
    padding: 4rem 2rem;
    background: white;
    text-align: center;
}

.services-header {
    margin-bottom: 3rem;
    /* Reduced from 5rem */
}

.services-title {
  font-family: var(--font-heading);
  font-size: 1.8rem; /* Smaller than header (2rem) */
  font-weight: 900;
  color: #1a1c1e;
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: -0.02em;
  text-shadow: 0 2px 4px rgba(0,0,0,0.02);
}

.services-subtitle {
    font-size: 1.125rem;
    color: #717375;
    font-weight: 400;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1.5rem 1rem;
    max-width: 950px;
    /* Shrunk to avoid border collision */
    width: 90%;
    margin: 0 auto;
}

.service-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  padding: 2rem 1rem;
  border-radius: 12px;
  position: relative;
  overflow: hidden;
}

.service-card:hover {
  transform: translateY(-15px);
  background: rgba(247, 117, 52, 0.02);
  box-shadow: 0 20px 40px rgba(0,0,0,0.04);
}

/* Staggered entry delays */
.reveal.active:nth-child(1) { transition-delay: 0.1s; }
.reveal.active:nth-child(2) { transition-delay: 0.2s; }
.reveal.active:nth-child(3) { transition-delay: 0.3s; }
.reveal.active:nth-child(4) { transition-delay: 0.4s; }
.reveal.active:nth-child(5) { transition-delay: 0.5s; }

.service-image-box {
    width: 100%;
    height: 140px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 2rem;
}

.service-image {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.06));
}

.service-name {
    font-size: 1.25rem;
    font-weight: 800;
    color: #333;
    margin-bottom: 1rem;
    text-transform: capitalize;
}

.service-description {
    font-size: 0.9rem;
    font-style: italic;
    color: #717375;
    line-height: 1.6;
    font-weight: 400;
}

/* --- GPS Section --- */
.gps-section {
    padding: 4rem 2rem;
    background: white;
    text-align: center;
    width: 100%;
    box-sizing: border-box;
}

/* --- GPS Title --- */
.gps-title {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  font-weight: 900;
  color: #1a1c1e;
  margin-bottom: 3rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  text-align: center; /* Explicitly centered */
}

.gps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
    max-width: 1000px;
    width: 100%;
    margin: 0 auto;
}

.gps-card {
    background: #f8fafc;
    padding: 2.5rem 1.25rem;
    /* Reduced padding */
    border-radius: 6px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
    min-height: 320px;
    /* Reduced min-height */
    justify-content: flex-start;
    border: 1px solid rgba(0, 0, 0, 0.03);
}

.gps-card:hover {
    background: white;
    box-shadow: var(--shadow-lg);
    transform: translateY(-8px);
    border-color: #eee;
}

.gps-card-title {
    font-family: var(--font-main);
    font-size: 1.05rem;
    /* Shrunk font size */
    font-weight: 800;
    color: #1a1c1e;
    margin-bottom: 1.2rem;
    line-height: 1.3;
    min-height: 3rem;
    display: flex;
    align-items: center;
    text-align: center;
}

.gps-divider {
    width: 25px;
    height: 2px;
    background: var(--primary-orange);
    /* Changed to orange for accent */
    margin: 0 auto 2rem;
}

.gps-logo-box {
    width: 100%;
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.gps-logo {
    max-width: 110px;
    /* Shrunk logo size */
    max-height: 70px;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.gps-card:hover .gps-logo {
    transform: scale(1.1);
}

.gps-card:hover .gps-logo {
    transform: scale(1.1);
}

@media (max-width: 1024px) {
    .gps-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .gps-title {
        font-size: 1.6rem;
    }
}

@media (max-width: 600px) {
    .gps-grid {
        grid-template-columns: 1fr;
    }
}

/* --- About Section --- */
.about-section {
  padding: 6rem 4rem;
  background: #f8fafb; /* Restored grey background for contrast */
  display: flex;
  justify-content: center;
  border-top: 1px solid rgba(0,0,0,0.03);
}

.about-container {
    max-width: 1000px;
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 4rem;
    align-items: center;
}.about-title {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    /* Shrunk for harmonization */
    font-weight: 900;
    color: #1a1c1e;
    margin-bottom: 2rem;
    text-transform: uppercase;
    position: relative;
    letter-spacing: -0.01em;
}

.about-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 60px;
    height: 4px;
    background: var(--primary-orange);
}

.about-text {
    font-size: 1.15rem;
    color: #515355;
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.about-image img {
    width: 100%;
    border-radius: 24px;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.1);
}

.btn-more {
    display: inline-block;
    margin-top: 1rem;
    padding: 1rem 2rem;
    background: white;
    color: var(--primary-orange);
    border: 2px solid var(--primary-orange);
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    transition: all 0.3s ease;
}
/* --- Partners Section --- */
.partners-section {
  padding: 4rem 0 0; /* Removed bottom padding */
  background: white;
  text-align: center;
}

.partners-title {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  font-weight: 800;
  color: #1a1c1e;
  margin-bottom: 3rem;
  padding: 0 2rem;
  text-align: center; /* Explicitly centered */
}

.partners-image-container {
  width: 100%;
  overflow: hidden;
}

.partners-banner {
  width: 100%;
  height: auto;
  display: block;
}

@media (max-width: 900px) {
  .partners-title { font-size: 1.4rem; }
}

/* --- News Section --- */
.news-section {
    padding: 5rem 2rem;
    background: linear-gradient(180deg, #f8f9fa 0%, #fff 100%);
}

.news-carousel-wrapper {
    position: relative;
    max-width: 900px; /* Bigger card */
    margin: 3.5rem auto 0;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 1rem 0; /* Let shadow breathe without clips */
}

.news-grid {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: hidden;
    scroll-snap-type: x mandatory;
    gap: 0;
    width: 100%;
    padding: 10px 0; /* Vertical padding to prevent border clipping */
    -webkit-overflow-scrolling: touch;
    scroll-behavior: smooth;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.news-grid::-webkit-scrollbar {
    display: none;
}

/* — Chevron Arrow Buttons — */
.carousel-btn {
    flex-shrink: 0;
    width: 52px;
    height: 52px;
    background: transparent;
    border: 2px solid #ddd;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: border-color 0.3s ease, background 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    z-index: 10;
}

.carousel-btn svg {
    width: 20px;
    height: 20px;
    stroke: #555;
    fill: none;
    stroke-width: 2.5;
    stroke-linecap: round;
    stroke-linejoin: round;
    transition: stroke 0.3s ease, transform 0.3s ease;
}

.carousel-btn:hover {
    background: var(--primary-orange);
    border-color: var(--primary-orange);
    box-shadow: 0 6px 24px rgba(247, 117, 52, 0.28);
}

.carousel-btn:hover svg {
    stroke: white;
}

.prev-btn:hover svg { transform: translateX(-3px); }
.next-btn:hover svg { transform: translateX(3px); }

.news-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.04);
    border: 2px solid transparent; /* Prepare for orange border on hover */
    transition: all 0.4s ease;
    display: flex;
    flex-direction: column;
    flex: 0 0 100%;
    scroll-snap-align: start;
}

.news-card:hover {
    border-color: var(--primary-orange);
    box-shadow: 0 5px 15px rgba(247, 117, 52, 0.08); /* Soft orange-ish glow instead of grey shadow */
}

.news-image-box {
    width: 100%;
    height: 350px; /* Taller for more impact */
    overflow: hidden;
    background: #fff; /* Neutral white background */
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2.2rem; /* Breathing room for logos and photos */
    border-bottom: 1px solid rgba(0,0,0,0.03);
    border-radius: 18px 18px 0 0; /* Fix WebKit bug where child background clips parent border */
}

.news-image {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain; /* Never stretch or squash any image */
    transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}

.news-card:hover .news-image {
    transform: scale(1.05); /* Subtle zoom for premium feel */
}

.news-content-box {
    padding: 2.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.news-date {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.72rem;
    font-weight: 800;
    color: var(--primary-orange);
    text-transform: uppercase;
    letter-spacing: 2.5px;
    margin-bottom: 1.2rem;
    padding: 0.3rem 0.9rem;
    background: rgba(247, 117, 52, 0.08);
    border-radius: 20px;
    width: fit-content;
}

.news-title {
    font-family: var(--font-heading);
    font-size: 1.55rem;
    font-weight: 900;
    color: #111;
    margin-bottom: 1.1rem;
    line-height: 1.25;
}

.news-excerpt {
    font-family: var(--font-main);
    font-size: 0.97rem;
    color: #6b7280;
    line-height: 1.75;
    margin-bottom: 1.8rem;
    flex: 1;
}

.news-link {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    color: #111;
    font-weight: 800;
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    transition: color 0.3s;
    width: fit-content;
}

.news-link::after {
    content: '';
    display: inline-block;
    width: 18px;
    height: 2px;
    background: currentColor;
    margin-left: 0.6rem;
    border-radius: 2px;
    transition: width 0.3s ease;
}

.news-link:hover {
    color: var(--primary-orange);
}

.news-link:hover::after {
    width: 30px;
}

/* Dots indicator */
.news-dots {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1.8rem;
}

.news-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #ddd;
    border: none;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.3s ease, width 0.3s ease;
    padding: 0;
}

.news-dot.active {
    background: var(--primary-orange);
    width: 24px;
    border-radius: 4px;
    transform: none;
}

.news-empty-state {
    text-align: center;
    padding: 5rem;
    color: #a0a0a0;
    font-style: italic;
    background: #fafafa;
    border-radius: 12px;
    border: 2px dashed #eee;
    width: 100%;
}

.news-link:hover::after {
    transform: translateX(5px);
}

.news-empty-state {
    grid-column: 1 / -1;
    text-align: center;
    padding: 5rem;
    color: #a0a0a0;
    font-style: italic;
    background: #fafafa;
    border-radius: 12px;
    border: 2px dashed #eee;
}

/* "Voir toutes les actualités" discreet button */
.news-see-all {
    text-align: center;
    margin-top: 1.2rem;
}

.news-see-all-link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-family: var(--font-main);
    font-size: 0.82rem;
    font-weight: 600;
    color: #999;
    text-decoration: none;
    letter-spacing: 0.5px;
    border-bottom: 1px solid transparent;
    transition: color 0.3s, border-color 0.3s;
}

.news-see-all-link:hover {
    color: var(--primary-orange);
    border-color: var(--primary-orange);
}

/* --- Footer --- */
.site-footer {
    background: #1a1c1e;
    color: white;
    padding: 4rem 4rem 2rem;
    /* Reduced from 6rem */
    border-bottom-left-radius: 20px;
    border-bottom-right-radius: 20px;
}

.footer-grid {
    max-width: 1100px;
    margin: 0 auto 4rem;
    display: grid;
    grid-template-columns: 1.5fr 1fr 1.5fr;
    gap: 4rem;
}

/* Replaced by consolidated rule at top */

.footer-summary {
    color: #a0a2a5;
    font-size: 0.95rem;
    line-height: 1.6;
}

.footer-col h4 {
    font-family: var(--font-heading);
    font-size: 1rem;
    margin-bottom: 1.5rem;
    color: white;
    text-transform: uppercase;
    letter-spacing: 0.15em;
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 0.75rem;
}

.footer-col ul li a {
    color: #a0a2a5;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    display: inline-block;
}

.footer-col ul li a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 1px;
    bottom: -2px;
    left: 0;
    background-color: var(--primary-orange);
    transition: width 0.3s ease;
}

.footer-col ul li a:hover {
    color: white;
    transform: translateX(5px);
}

.footer-col ul li a:hover::after {
    width: 100%;
}

.footer-col p {
    color: #a0a2a5;
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.footer-bottom {
    max-width: 1100px;
    margin: 0 auto;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    text-align: center;
    color: #717375;
    font-size: 0.75rem;
}

.footer-bottom a {
    color: #717375;
    text-decoration: none;
}

.footer-bottom a:hover {
    color: white;
}

@media (max-width: 900px) {
    .about-container {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .site-footer {
        padding: 4rem 2rem 2rem;
    }
}

@media (max-width: 900px) {
    .site-title {
        font-size: 1.8rem;
    }

    .nav-list {
        gap: 1.5rem;
        flex-wrap: wrap;
    }

    .content-wrapper {
        width: 100%;
        margin: 0;
    }

    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .services-title {
        font-size: 1.6rem;
    }
}

@media (max-width: 768px) {
    /* Layout Reset */
    .paper-layout .content-wrapper {
        width: 92%;
        margin: 0 auto;
        border-radius: 12px;
    }

    .paper-layout header,
    .paper-layout nav,
    .paper-layout main,
    .paper-layout .main-content {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    .paper-layout .site-footer {
        padding: 3rem 1.5rem 2rem;
        margin-left: -1rem;
        margin-right: -1rem;
        width: calc(100% + 2rem);
        border-radius: 0;
    }
    
    .paper-layout .partners-section {
        width: calc(100% + 2rem);
        margin-left: -1rem;
        margin-right: -1rem;
    }

    /* Header & Nav */
    .site-title {
        font-size: 1.4rem;
        word-wrap: break-word;
    }
    .main-header {
        padding: 1rem;
    }
    .nav-list {
        flex-direction: column;
        gap: 0.5rem;
    }
    .nav-link {
        padding: 0.8rem;
        text-align: center;
    }
    .dropdown {
        text-align: center;
    }
    
    /* Dropdown Fix - toggleable via JS on mobile */
    .dropdown-menu {
        position: static;
        width: 100%;
        transform: none !important;
        opacity: 0;
        visibility: hidden;
        display: none;
        box-shadow: none;
        border: none;
        background: rgba(0,0,0,0.02);
        padding: 0.5rem 0;
        margin-top: 0;
        transition: none;
    }
    
    .dropdown-menu.show-mobile {
        opacity: 1 !important;
        visibility: visible !important;
        display: block !important;
    }

    .dropdown-link {
        padding: 0.6rem 1.5rem;
        font-size: 0.75rem;
        text-align: center;
    }
    
    /* Footer Logo Center */
    .footer-logo {
        margin-left: auto;
        margin-right: auto;
    }

    /* Grids */
    .services-grid, .gps-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    /* Accueil Carousel Mobile Fix & Proportions */
    .news-carousel-wrapper .carousel-btn {
        display: none !important;
    }
    .news-carousel-wrapper {
        gap: 0;
    }
    .news-card {
        flex: 0 0 100%; 
        scroll-snap-align: center;
    }
    .news-grid {
        padding: 15px 0; /* Ajout d'espace vertical pour ne pas "rogner" l'arrondi et l'ombre */
        gap: 0;
    }
    
    /* Correction de l'effet "Allongé" sur téléphone */
    .news-image-box {
        height: 220px; /* Réduction de la hauteur (était 350px) */
        padding: 1.5rem; /* Réduction du padding interne */
    }
    .news-content-box {
        padding: 1.5rem; /* Moins de vide autour du texte */
    }
    .news-title {
        font-size: 1.15rem; /* Titre plus petit pour éviter l'effet colonne étroite */
        margin-bottom: 0.8rem;
        line-height: 1.3;
    }
    .news-excerpt {
        font-size: 0.9rem; /* Texte un peu plus fin */
        margin-bottom: 1.5rem;
    }

    .services-title {
        font-size: 1.8rem;
    }
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    .about-container {
        gap: 2rem;
    }

}

/* --- Admin Panel Global Styles (Final Consolidated) --- */
.admin-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 3rem; padding-top: 1rem; }
.admin-header-brand { display: flex; align-items: center; gap: 1rem; }
.admin-header-logo { height: 50px !important; width: auto !important; flex-shrink: 0; }
.admin-header-title { font-family: 'Montserrat', sans-serif; font-weight: 900; font-size: 1.5rem; margin: 0; letter-spacing: -1px; }
.admin-header-user { display: flex; align-items: center; gap: 1.5rem; }
.admin-greeting { font-weight: 700; color: #888; }
.admin-username { color: #111; }
.admin-logout-btn { color: #e53e3e; font-weight: 800; text-decoration: none; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 1px; border: 1px solid #fed7d7; padding: 0.5rem 1rem; border-radius: 8px; transition: 0.3s; }
.admin-logout-btn:hover { background: #fff5f5; border-color: #feb2b2; }

.admin-nav { display: flex; align-items: center; border-bottom: 2px solid #eee; margin-bottom: 3rem; padding-bottom: 0.5rem; overflow-x: auto; flex-wrap: nowrap; gap: 2rem; }
.admin-nav a { text-decoration: none; color: #888; font-weight: 800; font-size: 0.75rem; text-transform: uppercase; letter-spacing: 1px; transition: 0.3s; white-space: nowrap; padding-bottom: 0.8rem; }
.admin-nav a:hover, .admin-nav a.active { color: var(--primary-orange); }
.admin-nav a.active { border-bottom: 3px solid var(--primary-orange); }
.admin-nav .nav-link-right { margin-left: auto; color: #bbb; }
.admin-nav .nav-link-right:hover { color: var(--primary-orange); }

@media (max-width: 768px) {
    .admin-nav {
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding-bottom: 1rem;
        padding-left: 0;
        overflow-x: visible;
    }
    .admin-nav a {
        padding: 1rem 0;
        text-align: center;
        border-bottom: 1px solid #f0f0f0;
        width: 100%;
        box-sizing: border-box;
    }
    .admin-nav a.active {
        border-bottom: 3px solid var(--primary-orange);
    }
    .admin-nav .nav-link-right {
        margin-left: 0;
    }
}

/* Dashboard Styles */
.stats-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2rem; margin-bottom: 4rem; }
.stat-card { background: white; padding: 2.5rem; border-radius: 16px; border: 1px solid #eee; text-align: center; box-shadow: 0 4px 15px rgba(0,0,0,0.02); }
.stat-label { color: #888; font-weight: 800; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 0.5rem; }
.stat-value { font-size: 3.5rem; font-weight: 900; color: #111; margin: 0; line-height: 1; }

.quick-action-btns { display: flex; justify-content: center; gap: 2rem; margin-top: 1rem; }
.quick-action-btn { 
    display: inline-block; text-decoration: none; background: #111; color: white; 
    padding: 1.2rem 3rem; border-radius: 12px; font-weight: 900; 
    text-transform: uppercase; letter-spacing: 1px; font-size: 0.9rem;
    transition: 0.3s; box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    border: none; cursor: pointer;
}
.quick-action-btn:hover { background: var(--primary-orange); transform: translateY(-5px); box-shadow: 0 15px 35px rgba(247, 117, 52, 0.3); color: white; }

/* News List Admin Specifics */
.admin-news-page .news-list { display: grid; gap: 1rem; width: 100%; max-width: 1000px; margin: 0 auto; }
.admin-news-page .news-item { 
    background: white; border: 1px solid #eee; padding: 1rem; border-radius: 12px; 
    display: flex; gap: 1.5rem; align-items: center; transition: 0.3s;
    box-shadow: 0 2px 10px rgba(0,0,0,0.02);
    width: 100%;
}
.admin-news-page .news-item:hover { transform: translateY(-2px); box-shadow: 0 10px 25px rgba(0,0,0,0.05); }

.admin-news-thumbnail { 
    flex: 0 0 100px; width: 100px; height: 100px; border-radius: 8px; 
    overflow: hidden; background: #f8f8f8; border: 1px solid #f0f0f0; 
}
.admin-news-thumbnail img { width: 100% !important; height: 100% !important; object-fit: cover !important; display: block; }

.admin-news-info { flex: 1; min-width: 0; }
.admin-news-info h3 { margin: 0 0 0.3rem 0; font-weight: 900; font-size: 1rem; color: #111; }
.admin-news-date { color: #888; font-size: 0.75rem; margin-bottom: 0.5rem; }
.admin-news-stats { 
    display: inline-flex; align-items: center; gap: 5px; 
    background: #f8f8f8; padding: 3px 10px; border-radius: 15px; 
    font-size: 0.7rem; font-weight: 700; color: #777; 
}

.news-actions { display: flex; gap: 0.5rem; align-items: center; }
.btn-action { 
    text-decoration: none; font-weight: 800; font-size: 0.65rem; 
    text-transform: uppercase; letter-spacing: 1px; padding: 0.5rem 0.8rem; 
    border: 1px solid #eee; border-radius: 6px; transition: 0.3s; color: #333;
    background: white; white-space: nowrap;
}
.btn-action:hover { background: #f8f8f8; border-color: #ddd; transform: translateY(-2px); }
.btn-delete { color: #ef4444 !important; border-color: #fee2e2 !important; }
.btn-delete:hover { background: #fef2f2 !important; }
.btn-archive { color: #3b82f6 !important; border-color: #dbeafe !important; }
.btn-archive:hover { background: #eff6ff !important; }

/* Global Mobile Overrides Fix */
@media (max-width: 768px) {
    .admin-news-page .news-item { flex-direction: column; text-align: center; padding: 1.5rem; gap: 1rem; }
    .admin-news-thumbnail { flex: 0 0 120px; width: 120px; height: 120px; }
    .news-actions { width: 100%; flex-wrap: wrap; justify-content: center; }
    .btn-action { flex: 1; text-align: center; }
    .admin-header { flex-direction: column; gap: 1.5rem; text-align: center; }
    .admin-nav { justify-content: center; padding-bottom: 1rem; }
    .stats-grid { grid-template-columns: 1fr; gap: 1rem; }
    .quick-action-btns { flex-direction: column; width: 100%; }
    .quick-action-btn { width: 100%; text-align: center; }
}

/* Custom File Upload Styling */
.file-upload-wrapper { position: relative; width: 100%; margin-top: 0.5rem; }
.file-upload-input { position: absolute; left: 0; top: 0; opacity: 0; width: 100%; height: 100%; cursor: pointer; z-index: 2; }
.file-upload-label { display: flex; align-items: center; justify-content: center; gap: 1rem; padding: 1rem; background: #f8f8f8; border: 2px dashed #ddd; border-radius: 8px; font-weight: 700; color: #666; transition: 0.3s; cursor: pointer; }
.file-upload-wrapper:hover .file-upload-label { border-color: var(--primary-orange); background: #fffafa; color: var(--primary-orange); }

/* Admin Form Styles */
.news-form { background: white; padding: 2rem; border-radius: 16px; border: 1px solid #eee; margin-bottom: 3rem; box-shadow: 0 4px 20px rgba(0,0,0,0.03); }
.form-group { margin-bottom: 1.5rem; }
.form-group label { display: block; font-weight: 800; font-size: 0.75rem; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 0.5rem; color: #666; }
.form-group input, .form-group textarea { width: 100%; padding: 1rem; border: 1px solid #ddd; border-radius: 8px; font-family: inherit; font-size: 1rem; box-sizing: border-box; transition: 0.3s; }
.form-group input:focus, .form-group textarea:focus { border-color: var(--primary-orange); outline: none; box-shadow: 0 0 0 4px rgba(247, 117, 52, 0.05); }
.form-group textarea { height: 120px; resize: vertical; }

.btn-submit { 
    background: #111; color: white; border: none; padding: 1.2rem 2rem; 
    border-radius: 10px; font-weight: 900; text-transform: uppercase; letter-spacing: 1px; 
    cursor: pointer; transition: 0.3s; width: 100%; 
}
.btn-submit:hover { background: var(--primary-orange); transform: translateY(-3px); box-shadow: 0 10px 20px rgba(247, 117, 52, 0.2); }

/* Search & Pagination */
.admin-search-container { margin-bottom: 2.5rem; }
.search-form { display: flex; gap: 1rem; align-items: stretch; background: white; padding: 0.5rem; border-radius: 12px; border: 1px solid #eee; }
.search-input { flex: 1; border: none; background: transparent; padding: 0.8rem 1.2rem; font-family: inherit; font-size: 1rem; outline: none; }
.btn-search { background: #111; color: white; border: none; padding: 0 1.5rem; border-radius: 8px; font-weight: 800; text-transform: uppercase; font-size: 0.75rem; letter-spacing: 1px; cursor: pointer; transition: 0.3s; }
.btn-search:hover { background: var(--primary-orange); }

@media (max-width: 600px) {
    .search-form {
        flex-direction: column;
        gap: 0.5rem;
        padding: 0.5rem;
    }
    .search-input {
        width: 100%;
        box-sizing: border-box;
    }
    .btn-search {
        width: 100%;
        padding: 1rem;
    }
}

.admin-pagination { margin-top: 3rem; display: flex; justify-content: center; gap: 0.5rem; flex-wrap: wrap; }
.pagination-link { text-decoration: none; padding: 0.6rem 1rem; background: white; border: 1px solid #eee; border-radius: 6px; color: #333; font-weight: 800; font-size: 0.8rem; transition: 0.3s; }
.pagination-link:hover { border-color: var(--primary-orange); color: var(--primary-orange); transform: translateY(-2px); }
.pagination-link.active { background: var(--primary-orange); color: white; border-color: var(--primary-orange); }

/* Footer Social Icons */
.facebook-square-link {
    display: flex; align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: 6px;
    background: #1877F2; color: #fff; transition: all 0.3s ease; box-shadow: 0 4px 10px rgba(24, 119, 242, 0.25); margin-top: 1rem;
}
.facebook-square-link:hover { transform: translateY(-3px); box-shadow: 0 6px 15px rgba(24, 119, 242, 0.4); color: white; }

/* --- Cookie Banner Premium Styles --- */
.cookie-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); display: flex; align-items: center; justify-content: center;
    z-index: 10000; opacity: 0; visibility: hidden; transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}
.cookie-overlay.active { opacity: 1; visibility: visible; }
.cookie-card {
    background: white; width: 90%; max-width: 480px; padding: 2.5rem; border-radius: 24px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25); transform: translateY(30px) scale(0.95);
    transition: all 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275); text-align: center;
}
.cookie-overlay.active .cookie-card { transform: translateY(0) scale(1); }
.cookie-header { margin-bottom: 1.5rem; }
.cookie-icon { font-size: 3rem; margin-bottom: 1rem; display: inline-block; animation: cookie-float 3s ease-in-out infinite; }
@keyframes cookie-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
.cookie-header h2 { font-family: 'Montserrat', sans-serif; font-weight: 900; color: #111; margin: 0; font-size: 1.5rem; }
.cookie-body { margin-bottom: 2rem; }
.cookie-body p { color: #555; font-size: 0.95rem; line-height: 1.6; margin-bottom: 1rem; }
.cookie-footer { display: flex; gap: 1rem; }
.cookie-btn { flex: 1; padding: 1rem; border-radius: 14px; border: none; font-weight: 800; font-size: 0.9rem; cursor: pointer; transition: all 0.3s ease; }
.btn-deny { background: #f0f0f0; color: #666; }
.btn-accept { background: #111; color: white; }
.btn-accept:hover { background: var(--primary-orange); transform: translateY(-3px); box-shadow: 0 10px 20px rgba(247, 117, 52, 0.2); }
@media (max-width: 480px) { .cookie-card { padding: 1.5rem; } .cookie-footer { flex-direction: column; } }
