@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400&family=Poppins:wght@300;400;500;600;700&display=swap');

:root {
    /* Professional Color Palette matching distillery.galoya.lk */
    --primary-color: #123524;
    /* Dark Forest Green */
    --primary-light: #1c5237;
    /* Lighter shade for hover states */
    --secondary-color: #D6AD60;
    /* Soft Gold for premium contrast */
    --accent-color: #E8F0EC;
    /* Very light subtle green for accents */
    --text-main: #1B2420;
    /* Dark slate green for text instead of plain black */
    --text-muted: #5C6E65;
    /* Muted greenish-grey */
    --bg-main: #F4F7F5;
    /* Elegant faint greenish off-white instead of plain white */
    --bg-gray: #E8F0EC;
    /* Slightly darker shade for sections */

    /* Typography */
    --font-main: 'Poppins', sans-serif;
    --font-heading: 'Playfair Display', serif;

    /* Layout */
    --container-max-width: 1200px;
    --header-height: 80px;
    --border-radius: 8px;
    --transition-speed: 0.3s;

    /* Shadows */
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);

    /* Glassmorphism */
    --glass-bg: rgba(255, 255, 255, 0.85);
    --glass-border: rgba(255, 255, 255, 0.18);
}

/* Base Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-main);
    color: var(--text-main);
    background-color: var(--bg-main);
    line-height: 1.6;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6,
.section-title,
.page-title,
.timeline-title {
    font-family: var(--font-heading);
}

a {
    text-decoration: none;
    color: inherit;
    transition: color var(--transition-speed);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Layout Utilities */
.container {
    width: 100%;
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: 80px 0;
}

.section-light {
    background-color: var(--bg-gray);
}

/* Typography Utilities */
.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 20px;
    text-align: center;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background-color: var(--secondary-color);
    margin: 15px auto 0;
    border-radius: 2px;
}

.section-subtitle {
    text-align: center;
    color: var(--text-muted);
    font-size: 1.1rem;
    max-width: 700px;
    margin: 0 auto 40px;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 14px 35px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    cursor: pointer;
    transition: all var(--transition-speed);
    text-align: center;
    border: 2px solid transparent;
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background-color: var(--primary-light);
}

.btn-outline {
    background-color: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
}

.btn-outline:hover {
    background-color: var(--primary-color);
    color: white;
}

/* Header & Navigation (Fullscreen Overlay Style) */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: transparent;
    transition: all 0.4s ease;
    padding: 20px 0;
}

.main-header.scrolled {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    padding: 10px 0;
}


.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo-container {
    pointer-events: auto;
}

.mobile-menu-btn {
    pointer-events: auto;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 1001;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: white;
    transition: color 0.3s ease;
}

.main-header.scrolled .mobile-menu-btn {
    color: var(--primary-color);
}

.mobile-menu-btn.open {
    color: white !important;
}

.mobile-menu-btn:hover {
    color: var(--secondary-color) !important;
}

/* Fullscreen Menu Overlay */
.fullscreen-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(18, 53, 36, 0.98);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    z-index: 999;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.5s ease;
}

.fullscreen-menu.active {
    opacity: 1;
    visibility: visible;
}

.menu-links {
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 8px; /* Reduced gap */
    max-height: 85vh;
    overflow-y: auto;
    padding: 20px;
    width: 100%;
    max-width: 600px; /* Constrain width for better readability */
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.menu-links::-webkit-scrollbar {
    display: none;
}

.menu-link-wrapper {
    transform: translateY(30px);
    opacity: 0;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.fullscreen-menu.active .menu-link-wrapper {
    transform: translateY(0);
    opacity: 1;
}

/* Stagger animation delay */
.menu-link-wrapper:nth-child(1) {
    transition-delay: 0.1s;
}

.menu-link-wrapper:nth-child(2) {
    transition-delay: 0.15s;
}

.menu-link-wrapper:nth-child(3) {
    transition-delay: 0.2s;
}

.menu-link-wrapper:nth-child(4) {
    transition-delay: 0.25s;
}

.menu-link-wrapper:nth-child(5) {
    transition-delay: 0.3s;
}

.menu-link-wrapper:nth-child(6) {
    transition-delay: 0.35s;
}

.menu-link-wrapper:nth-child(7) {
    transition-delay: 0.4s;
}

.menu-link-wrapper:nth-child(8) {
    transition-delay: 0.45s;
}

.menu-link-wrapper:nth-child(9) {
    transition-delay: 0.5s;
}

.menu-link-wrapper:nth-child(10) {
    transition-delay: 0.55s;
}

.menu-link-wrapper:nth-child(11) {
    transition-delay: 0.6s;
}

.fs-link {
    font-size: 1.2rem;
    font-family: var(--font-main);
    color: white;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
    transition: color 0.3s ease;
    display: block;
    padding: 8px 0;
}

.fs-link:hover {
    color: var(--secondary-color);
}

.fs-sublink {
    font-size: 1rem;
    font-family: var(--font-main);
    color: rgba(255, 255, 255, 0.75);
    display: block;
    padding: 6px 0;
    transition: all 0.3s ease;
    font-weight: 400;
}

.fs-sublink:hover {
    color: var(--secondary-color);
    transform: translateX(5px);
}

.accordion-btn {
    background: none;
    border: none;
    cursor: pointer;
    width: 100%;
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

.accordion-btn .accordion-icon {
    font-size: 1rem;
    transition: transform 0.3s ease;
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 0;
}

.accordion-content.active {
    padding-top: 10px;
}

@media (min-height: 800px) {
    .menu-links {
        gap: 15px;
    }

    .fs-link {
        font-size: 1.4rem;
    }

    .fs-sublink {
        font-size: 1.05rem;
    }
}

/* Hero Section */
.hero {
    height: 100vh;
    min-height: 600px;
    background: url('../images/header.jpg') center/cover;
    /* Fallback */
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    padding-top: var(--header-height);
}

.hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translateX(-50%) translateY(-50%);
    z-index: 0;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(18, 53, 36, 0.5);
    /* Use primary color for overlay */
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-content h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* Footer */
.main-footer {
    background-color: var(--primary-color);
    color: white;
    padding: 60px 0 10px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 35px;
}

.footer-col h3 {
    font-size: 1.2rem;
    margin-bottom: 20px;
    color: var(--secondary-color);
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--secondary-color);
    padding-left: 5px;
}

.footer-social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 50%;
    color: #ffffff;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.footer-social-link:hover {
    background: var(--secondary-color, #D6AD60);
    color: var(--primary-color, #123524);
    border-color: var(--secondary-color, #D6AD60);
    transform: translateY(-3px);
    box-shadow: 0 4px 14px rgba(214, 173, 96, 0.4);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 16px;
    padding-bottom: 0;
    text-align: center;
}

.footer-bottom-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 7px;
    text-align: center;
}

.footer-bottom-content p {
    margin: 0;
    font-size: 0.88rem;
    color: rgba(255, 255, 255, 0.65);
    letter-spacing: 0.2px;
}

.footer-legal-links {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 0.78rem;
}

.footer-legal-links a {
    color: rgba(255, 255, 255, 0.5);
    text-decoration: none;
    transition: all 0.25s ease;
    padding: 1px 3px;
    border-radius: 3px;
}

.footer-legal-links a:hover {
    color: var(--secondary-color, #D6AD60);
    text-decoration: underline;
}

.legal-divider {
    color: rgba(255, 255, 255, 0.25);
    font-size: 0.65rem;
    user-select: none;
}

/* Legal Policies (Privacy Policy & Terms) */
.legal-content-body {
    font-size: 1.02rem;
    line-height: 1.85;
    color: #2c3e35;
}

.legal-content-body h2,
.legal-content-body h3,
.legal-content-body h4 {
    font-family: var(--font-heading, 'Playfair Display', serif);
    color: var(--primary-color, #123524);
    margin-top: 30px;
    margin-bottom: 14px;
    font-weight: 700;
}

.legal-content-body h2 {
    font-size: 1.6rem;
    border-bottom: 1px solid #E8F0EC;
    padding-bottom: 8px;
}

.legal-content-body h3 {
    font-size: 1.3rem;
}

.legal-content-body h4 {
    font-size: 1.15rem;
}

.legal-content-body p {
    margin-bottom: 18px;
}

.legal-content-body ul,
.legal-content-body ol {
    margin: 12px 0 20px 24px;
    color: #34495e;
}

.legal-content-body li {
    margin-bottom: 8px;
    line-height: 1.7;
}

.legal-content-body strong {
    color: var(--primary-color, #123524);
}

.legal-content-body a {
    color: var(--primary-light, #1c5237);
    text-decoration: underline;
}

.legal-content-body a:hover {
    color: var(--secondary-color, #D6AD60);
}

/* Page Header (Internal Pages) */
.page-header {
    padding: 150px 0 80px;
    background: linear-gradient(rgba(46, 90, 28, 0.8), rgba(46, 90, 28, 0.9)), url('../images/img_9432n.jpg') center/cover;
    color: white;
    text-align: center;
}

.page-title {
    font-size: 3rem;
    font-weight: 700;
}

/* Content Area */
.content-area {
    padding: 60px 0;
}

.content-block {
    background: white;
    padding: 40px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
    margin-bottom: 30px;
}

.content-block h2 {
    color: var(--primary-color);
    margin-bottom: 20px;
}

.content-block p {
    margin-bottom: 15px;
    color: var(--text-muted);
}

/* Grid System */
.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

/* Cards */
.card {
    background: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: transform var(--transition-speed), box-shadow var(--transition-speed);
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.card-img {
    height: 200px;
    object-fit: cover;
    width: 100%;
}

.card-body {
    padding: 20px;
}

.card-title {
    font-size: 1.25rem;
    color: var(--primary-color);
    margin-bottom: 10px;
}

/* Business Grid - Home Page */
.business-section {
    padding: 0;
}

.business-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    width: 100%;
}

.business-card-large {
    position: relative;
    height: 500px;
    overflow: hidden;
    cursor: pointer;
    display: block;
}

.business-img-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.business-card-large:hover .business-img-wrapper {
    transform: scale(1.1);
}

.business-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.business-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.4) 40%, rgba(0, 0, 0, 0.1) 100%);
    transition: background 0.4s ease;
}

.business-card-large:hover .business-overlay {
    background: linear-gradient(to top, rgba(0, 0, 0, 0.95) 0%, rgba(0, 0, 0, 0.6) 40%, rgba(0, 0, 0, 0.2) 100%);
}

.business-content {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 40px 30px;
    color: white;
    transform: translateY(45px);
    transition: transform 0.4s ease;
}

.business-card-large:hover .business-content {
    transform: translateY(0);
}

.business-title {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: white;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.business-desc {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 20px;
    opacity: 0;
    transition: opacity 0.4s ease;
    transition-delay: 0.1s;
    line-height: 1.4;
}

.business-card-large:hover .business-desc {
    opacity: 1;
}

.business-explore {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    color: var(--secondary-color);
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 1px;
    opacity: 0;
    transition: opacity 0.4s ease;
    transition-delay: 0.2s;
}

.business-card-large:hover .business-explore {
    opacity: 1;
}

.business-explore i {
    transition: transform 0.3s ease;
}

.business-card-large:hover .business-explore i {
    transform: translateX(5px);
}

/* Timeline Section (Latest Updates) */
.timeline-section {
    background-color: #111111;
    color: #ffffff;
    padding: 80px 0;
    overflow: hidden;
}

.timeline-header {
    text-align: center;
    margin-bottom: 60px;
}

.timeline-tag {
    color: #8CC63F;
    /* Bright Green */
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 15px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.timeline-tag::before {
    content: '';
    display: block;
    width: 8px;
    height: 8px;
    background-color: #8CC63F;
    border-radius: 50%;
}

.timeline-title {
    font-size: 2.8rem;
    font-weight: 700;
    margin-bottom: 15px;
}

.timeline-subtitle {
    color: rgba(255, 255, 255, 0.7);
    max-width: 700px;
    margin: 0 auto;
    font-size: 1.1rem;
}

.timeline-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 1350px;
    margin: 0 auto;
    position: relative;
}

.timeline-container {
    width: 100%;
    overflow-x: hidden;
    scroll-behavior: auto;
    padding: 20px 0 60px;
    position: relative;
    scrollbar-width: none;
    -ms-overflow-style: none;
    -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
    mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

.timeline-container::-webkit-scrollbar {
    display: none;
}

.timeline-track {
    display: flex;
    width: max-content;
    position: relative;
}

.timeline-nav-btn {
    position: absolute;
    top: 40%;
    transform: translateY(-50%);
    background: transparent;
    color: var(--secondary-color);
    border: none;
    width: 50px;
    height: 50px;
    font-size: 2.5rem;
    cursor: pointer;
    z-index: 10;
    transition: transform 0.3s ease, color 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    /* Helps visibility over text */
}

.timeline-nav-btn:hover {
    background: transparent;
    color: #fff;
    transform: translateY(-50%) scale(1.2);
}

.timeline-nav-btn.prev-btn {
    left: 25px;
}

.timeline-nav-btn.next-btn {
    right: 25px;
}

/* The continuous horizontal line */
.timeline-track::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background-color: rgba(255, 255, 255, 0.15);
    z-index: 0;
}

.timeline-item {
    width: 350px;
    padding-right: 50px;
    flex-shrink: 0;
    position: relative;
    padding-bottom: 50px;
}

.timeline-date {
    color: #8CC63F;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 15px;
    line-height: 1;
}

.timeline-desc {
    font-size: 1.1rem;
    color: #ffffff;
    font-weight: 500;
}

.timeline-desc span {
    display: block;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
    font-weight: 400;
    margin-top: 8px;
}

/* The dot on the line */
.timeline-item::after {
    content: '';
    position: absolute;
    bottom: -7px;
    left: 0;
    width: 15px;
    height: 15px;
    background-color: #8CC63F;
    border-radius: 50%;
    z-index: 1;
    box-shadow: 0 0 10px rgba(140, 198, 63, 0.5);
    transition: transform 0.3s ease;
}

.timeline-item:hover::after {
    transform: scale(1.5);
}



/* History Page Redesign */
.hero-overlap-section {
    position: relative;
    padding-bottom: 80px;
    /* Space for the overlapping card */
}

.hero-overlap-bg {
    height: 60vh;
    min-height: 400px;
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    align-items: flex-end;
    justify-content: center;
}

.hero-overlap-bg::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(18, 53, 36, 0.4);
}

.hero-overlap-card {
    position: relative;
    z-index: 10;
    background: rgba(18, 30, 20, 0.25);
    /* More transparent glassmorphism */
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 60px 40px;
    width: 90%;
    max-width: 900px;
    margin: -100px auto 0;
    text-align: center;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
    border-radius: var(--border-radius);
}

.hero-overlap-card .subtitle {
    color: var(--secondary-color);
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-bottom: 15px;
    display: block;
}

.hero-overlap-card h1 {
    color: white;
    font-size: 3rem;
    margin: 0;
    line-height: 1.2;
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.3);
}

/* Vertical Timeline */
.vertical-timeline {
    position: relative;
    max-width: 1000px;
    margin: 80px auto;
    padding: 20px 0;
}

/* Center Line */
.vertical-timeline::before {
    content: '';
    position: absolute;
    top: 110px;
    bottom: 90px;
    left: 50%;
    width: 2px;
    background-color: var(--primary-light);
    transform: translateX(-50%);
}

.v-timeline-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 60px;
    position: relative;
    width: 100%;
}

.v-timeline-row:last-child {
    margin-bottom: 0;
}

.v-timeline-row:nth-child(even) {
    flex-direction: row-reverse;
}

.v-timeline-content {
    width: 45%;
    padding: 30px;
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
    position: relative;
}

.v-timeline-row:nth-child(odd) .v-timeline-content {
    text-align: right;
}

.v-timeline-row:nth-child(even) .v-timeline-content {
    text-align: left;
}

.v-timeline-year {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 80px;
    background: var(--bg-main);
    border: 3px solid var(--secondary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.2rem;
    color: var(--primary-color);
    z-index: 2;
    box-shadow: 0 0 0 5px white;
}

.v-timeline-content h3 {
    color: var(--primary-color);
    margin-bottom: 10px;
    font-size: 1.5rem;
}

.v-timeline-content p {
    color: var(--text-muted);
    margin: 0;
    font-size: 0.95rem;
}

/* Shares Structure Infographic */
.shares-structure {
    max-width: 800px;
    margin: 60px auto;
    text-align: center;
    position: relative;
}

.shares-top {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0;
}

.share-box {
    background: white;
    border-radius: var(--border-radius);
    padding: 30px;
    box-shadow: var(--shadow-sm);
    width: 45%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--primary-light);
    position: relative;
    z-index: 2;
}

.share-box.galoya {
    width: 60%;
    margin: 0 auto;
    border-color: var(--secondary-color);
}

.share-box img {
    max-width: 100%;
    height: 80px;
    object-fit: contain;
    margin-bottom: 10px;
}

.consortium-logos {
    display: flex;
    gap: 20px;
    align-items: center;
    justify-content: center;
}

.consortium-logos img {
    height: 60px;
}

.share-percent {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    background: var(--bg-main);
    padding: 5px 20px;
    border-radius: 20px;
    margin-top: 10px;
    border: 1px solid var(--primary-light);
}

.shares-connector {
    position: relative;
    height: 60px;
    width: 100%;
    z-index: 1;
}

/* Horizontal line connecting the two top boxes with vertical drops */
.shares-connector::before {
    content: '';
    position: absolute;
    top: 0;
    left: 22.5%;
    right: 22.5%;
    height: 30px;
    border-bottom: 2px solid var(--primary-light);
    border-left: 2px solid var(--primary-light);
    border-right: 2px solid var(--primary-light);
}

/* Vertical line down to the center box */
.shares-connector::after {
    content: '';
    position: absolute;
    top: 30px;
    left: 50%;
    width: 2px;
    height: 30px;
    background-color: var(--primary-light);
    transform: translateX(-50%);
}

/* Responsive */
@media (max-width: 992px) {
    .main-nav {
        position: fixed;
        top: var(--header-height);
        left: -100%;
        width: 100%;
        height: calc(100vh - var(--header-height));
        background: white;
        flex-direction: column;
        align-items: center;
        padding-top: 40px;
        transition: left 0.4s ease;
        box-shadow: var(--shadow-lg);
        overflow-y: auto;
    }

    .main-nav.active {
        left: 0;
    }

    .mobile-menu-btn {
        display: block;
    }

    .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        box-shadow: none;
        transform: none;
        text-align: center;
        display: none;
    }

    .nav-item.active .dropdown-menu {
        display: block;
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }

    .grid-2,
    .grid-3,
    .grid-4 {
        grid-template-columns: 1fr;
    }

    .business-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .business-grid {
        grid-template-columns: 1fr;
    }

    .business-card-large {
        height: 350px;
    }

    /* Shares Structure Mobile */
    .shares-top {
        flex-direction: column;
        align-items: center;
    }

    .share-box {
        width: 100%;
        margin-bottom: 20px;
    }

    .shares-connector {
        display: none;
    }

    .share-box.galoya {
        width: 100%;
        margin-top: 10px;
    }

    .consortium-logos {
        gap: 10px;
    }

    .consortium-logos img {
        height: 40px;
    }
}

/* ==========================================================================
   Operations Section Redesign
   ========================================================================== */
.op-section {
    background-color: var(--bg-main);
    padding: 60px 0;
}

.op-grid-5 {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
    margin-top: 40px;
}

.op-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
    position: relative;
    display: flex;
    flex-direction: column;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    margin-top: 15px; /* Give room for top badge */
}

.op-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.op-card-img-wrapper {
    position: relative;
    height: 140px;
    width: 100%;
}

.op-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 12px 12px 0 0;
}

.op-step-badge {
    position: absolute;
    top: 0; 
    left: 50%;
    transform: translate(-50%, -50%);
    background: var(--primary-color);
    color: white;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.85rem;
    z-index: 3;
    border: 2px solid white;
}

.op-icon-badge {
    position: absolute;
    bottom: -25px;
    left: 50%;
    transform: translateX(-50%);
    background: white;
    color: var(--primary-color);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    z-index: 3;
    box-shadow: var(--shadow-sm);
}

.op-card-body {
    padding: 35px 15px 25px; /* Top padding for icon */
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.op-card-title {
    font-family: var(--font-heading);
    color: var(--text-main);
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.op-card-stat {
    font-weight: 700;
    color: var(--secondary-color);
    font-size: 1.05rem;
    margin-bottom: 10px;
}

.op-card-desc {
    font-size: 0.8rem;
    color: var(--text-muted);
    line-height: 1.4;
}

/* Value Section */
.value-section {
    background-color: #e4ece7; /* Slightly darker shade */
    padding: 50px 0 70px;
    text-align: center;
}

.value-title {
    font-family: var(--font-heading);
    color: var(--text-main);
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 15px;
}

.value-grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-top: 40px;
}

.value-card {
    background: white;
    border-radius: 12px;
    padding: 0;
    display: flex;
    align-items: center;
    text-align: left;
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    position: relative;
    min-height: 140px;
    height: 100%;
}

.value-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #6a8c78;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    margin-left: 15px;
    flex-shrink: 0;
    z-index: 2;
}

.value-content {
    padding: 15px;
    flex-grow: 1;
    z-index: 2;
    max-width: 58%;
}

.value-card-title {
    font-weight: 700;
    color: var(--text-main);
    font-size: 0.95rem;
    margin-bottom: 5px;
}

.value-card-desc {
    font-size: 0.75rem;
    color: var(--text-muted);
    line-height: 1.3;
}

.value-img {
    position: absolute;
    right: 0;
    top: 0;
    height: 100%;
    width: 45%;
    object-fit: cover;
    -webkit-mask-image: linear-gradient(to left, black 30%, transparent 100%);
    mask-image: linear-gradient(to left, black 30%, transparent 100%);
    z-index: 1;
}

.btn-explore {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-top: 40px;
    padding: 12px 25px;
    background-color: var(--primary-color);
    color: white;
    font-weight: 600;
    font-size: 0.9rem;
    border-radius: 6px;
    text-decoration: none;
    transition: background 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-explore:hover {
    background-color: var(--primary-light);
    color: white;
}

@media (max-width: 1024px) {
    .op-grid-5 { grid-template-columns: repeat(3, 1fr); }
    .value-grid-4 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .op-grid-5 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 576px) {
    .op-grid-5 { grid-template-columns: 1fr; }
    .value-grid-4 { grid-template-columns: 1fr; }
}

/* ==========================================================================
   Floating Scroll to Top Button
   ========================================================================== */
html {
    scroll-behavior: smooth;
}

.scroll-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--primary-color, #123524);
    color: #ffffff;
    border: 2px solid rgba(214, 173, 96, 0.5);
    box-shadow: 0 6px 20px rgba(18, 53, 36, 0.35), 0 2px 6px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(20px) scale(0.85);
    transition: opacity 0.35s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.35s cubic-bezier(0.16, 1, 0.3, 1),
                background-color 0.25s ease,
                border-color 0.25s ease,
                color 0.25s ease,
                box-shadow 0.25s ease;
    z-index: 990;
    outline: none;
    text-decoration: none;
}

.scroll-to-top.show {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0) scale(1);
}

.scroll-to-top:hover {
    background: var(--secondary-color, #D6AD60);
    border-color: #D6AD60;
    color: var(--primary-color, #123524);
    box-shadow: 0 10px 25px rgba(214, 173, 96, 0.5), 0 3px 10px rgba(0, 0, 0, 0.2);
    transform: translateY(-4px) scale(1.06);
}

.scroll-to-top:active {
    transform: translateY(-1px) scale(0.96);
}

@media (max-width: 768px) {
    .scroll-to-top {
        bottom: 20px;
        right: 20px;
        width: 42px;
        height: 42px;
        font-size: 1rem;
    }
}