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

:root {
    --primary-green: #0ea94f;
    --dark-green: #0a7035;
    --light-green: #eefbee;
    --text-dark: #333;
    --text-light: #f5f5f5;
    --text-gray: #666;
    --yellow: #f4c20d;
    --red: #d32f2f;
    --top-bar-bg: #222;
    --footer-bg: #111;
}

body {
    font-family: 'Poppins', sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    background-color: #fff;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.text-center { text-align: center; }
.text-white { color: #fff; }
.text-light { color: var(--text-light); }
.text-green { color: var(--primary-green); }
.text-dark { color: #000; }
.text-red { color: var(--red); }
.text-yellow { color: var(--yellow); }
.text-green-light { color: #8bc34a; }

.btn {
    display: inline-block;
    padding: 10px 25px;
    border-radius: 5px;
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn-primary {
    background-color: #f7941d;
    color: #fff;
    border: none;
}

.btn-primary:hover {
    background-color: #e08316;
}

.btn-outline {
    background-color: transparent;
    border: 2px solid #fff;
    color: #fff;
}

.btn-outline:hover {
    background-color: #fff;
    color: var(--primary-green);
}

.section-subtitle {
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 1px;
    margin-bottom: 10px;
    color: var(--text-dark);
    text-transform: uppercase;
    color: #464646;
}

.section-title {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.3;
}

/* --- Top Bar --- */
.top-bar {
    background-color: var(--top-bar-bg);
    color: #fff;
    padding: 10px 0;
    font-size: 13px;
}

.top-bar-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo h1 {
    font-size: 24px;
    font-weight: 800;
    letter-spacing: 1px;
}

.logo .text-dark {
    color: #fff !important; /* overrides global class for this specific spot */
}

.top-contact-info {
    display: flex;
    gap: 30px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

.contact-item i {
    font-size: 18px;
}

.contact-item div {
    display: flex;
    flex-direction: column;
}

/* --- Navigation Header --- */
.main-header {
    background-color: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-container {
    display: flex;
    justify-content: center; /* Center nav based on image */
    padding: 15px 0;
    position: relative;
}

.main-nav {
    display: flex;
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-links > li > a {
    font-weight: 500;
    font-size: 15px;
    transition: color 0.3s;
}

.nav-links > li > a:hover {
    color: var(--primary-green);
}

.dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: #fff;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    min-width: 200px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    border-top: 3px solid var(--primary-green);
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu li a {
    display: block;
    padding: 10px 20px;
    border-bottom: 1px solid #eee;
    font-size: 14px;
    transition: background 0.3s;
}

.dropdown-menu li a:hover {
    background:  var(--primary-green);
    color: #FFF;
    padding-left: 25px; /* micro animation */
}

.mobile-menu-toggle {
    display: none;
    font-size: 24px;
    cursor: pointer;
    position: absolute;
    right: 20px;
    top: 15px;
}

/* --- Hero Section --- */
.hero-section {
    position: relative;
    height: 80vh;
    min-height: 860px;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(0,0,0,0.3), rgba(0,100,50,0.6));
}

.hero-content {
    position: relative;
    z-index: 10;
}

.welcome-text {
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 2px;
    margin-bottom: 10px;
}

.main-heading {
    font-size: 56px;
    font-weight: 800;
    margin-bottom: 30px;
}

.hero-logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 20px;
}

.hero-logo i {
    font-size: 32px;
    margin-bottom: 5px;
}
.hero-logo .fa-seedling {
    font-size: 24px;
    margin-top: -15px;
}
.hero-logo p {
    font-weight: 600;
    letter-spacing: 1px;
    margin-top: 5px;
    color: var(--primary-green);
}

/* --- Features Section --- */
.features-section {
    padding: 50px 0;
    background-color: #fff;
    margin-top: -60px;
    position: relative;
    z-index: 20;
}

.features-container {
    display: flex;
    gap: 30px;
    justify-content: center;
}

.feature-card {
    transform: translateY(-110px);
    background-color: var(--primary-green);
    color: #fff;
    padding: 40px 30px;
    border-radius: 10px;
    text-align: center;
    flex: 1;
    box-shadow: 0 10px 30px rgba(14,169,79,0.3);
    transition: transform 0.3s;
}

.feature-card:hover {
    transform: translateY(-125px);
    background-color: #ffc20e;
    color: #000;
}

.feature-card .icon-container {
    width: 60px;
    height: 60px;
    margin: 0 auto 20px;
    border-radius: 50%;
    border: 2px solid rgba(255,255,255,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}

.feature-card h3 {
    margin-bottom: 15px;
    font-size: 20px;
}

.feature-card p {
    font-size: 14px;
    opacity: 0.9;
}

/* --- History Section --- */
.history-section {
    padding: 80px 0;
    background: #ecf9eb;

}

.history-container {
    display: flex;
    gap: 50px;
    align-items: center;
}

.history-content {
    flex: 1;
}

.history-content p {
    margin-bottom: 20px;
    color: var(--text-gray);
}

.history-image {
    flex: 1;
}

.history-image img {
    width: 100%;
    border-radius: 15px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.1);
}

/* --- Processes Section --- */
.processes-section {
    padding: 60px 0;
    background-color: #fff;
}

.processes-container {
    display: flex;
    gap: 20px;
}

.process-column-left {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.process-column-right {
    flex: 1;
}

.process-card {
    border-radius: 15px;
    overflow: hidden;
    position: relative;
    background-size: cover;
    background-position: center;
}

.process-card:hover {
    background-blend-mode: color;;
    color: #000;
    transform: scale(1.01);
}

.process-small {
    height: 250px;
}

.process-row-bottom {
    display: flex;
    gap: 20px;
    height: 250px;
}

.process-square {
    flex: 1;
    height: 100%;
}

.process-large {
    height: 100%;
    min-height: 520px;
}

.process-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 20px;
    background: linear-gradient(transparent, rgba(0,0,0,0.8));
    color: #fff;
}

.full-overlay {
    height: 100%;
    background: linear-gradient(rgba(0,70,30,0.4), rgba(0,70,30,0.9));
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 40px;
}

.process-overlay h3 {
    font-size: 20px;
    margin-bottom: 5px;
}

.process-overlay p {
    font-size: 14px;
    opacity: 0.9;
}

.full-overlay h3 {
    font-size: 32px;
    margin-bottom: 15px;
}

.full-overlay p {
    font-size: 16px;
    margin-bottom: 25px;
}

.icon-leaf {
    width: 50px;
    height: 50px;
    background: rgba(255,255,255,0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    font-size: 20px;
}

/* --- Products Showcase --- */
.products-showcase {
    padding: 100px 0;
    background: linear-gradient(to bottom, #4a6572, #1c313a); /* approximate gradient from image */
}

.products-desc {
    max-width: 600px;
    margin: 0 auto 50px;
}

.products-carousel {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    max-width: 100%;
}

.products-carousel-container {
    overflow: hidden;
    width: 810px; /* 3 items * 250px + 2 gaps * 30px */
    max-width: 100%;
}

.products-track {
    display: flex;
    gap: 30px;
    transition: transform 0.5s ease-in-out;
    align-items: flex-end;
    padding: 20px 0;
}

.product-item {
    flex: 0 0 250px;
    text-align: center;
    transition: transform 0.3s;
}

.product-item:hover {
    transform: scale(1.05);
}

.bag-image {

    width: 250px;
    height: 350px;
    object-fit: cover;
}

@media (max-width: 992px) {
    .products-carousel-container {
        width: 530px; /* 2 items + 1 gap */
    }
}

@media (max-width: 768px) {
    .products-carousel-container {
        width: 250px; /* 1 item */
    }
}

.carousel-btn {
    background: transparent;
    border: 1px solid rgba(255,255,255,0.3);
    color: #fff;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s;
}

.carousel-btn:hover {
    background: rgba(255,255,255,0.1);
}

/* --- Testimonials --- */
.testimonials-section {
    padding: 80px 0;
    background-color: var(--light-green);
}

.testimonial-slider {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
}

.testimonial-slides {
    position: relative;
    min-height: 250px;
}

.testimonial-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    opacity: 0;
    visibility: hidden;
    transition: all 0.5s ease-in-out;
}

.testimonial-slide.active {
    opacity: 1;
    visibility: visible;
    position: relative; /* push parent height */
}

.rating {
    color: var(--yellow);
    font-size: 20px;
    margin-bottom: 20px;
}

.quote {
    font-size: 18px;
    font-style: italic;
    color: var(--text-gray);
    margin-bottom: 30px;
}

.testimonial-author {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 30px;
}

.author-details {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.author-img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    margin-bottom: 10px;
    object-fit: cover;
}

.author-details h4 {
    font-size: 16px;
    margin-bottom: 2px;
}

.author-details span {
    font-size: 13px;
    color: var(--text-gray);
}

.testimonial-nav {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-top: 20px;
}

.nav-arrow {
    background: transparent;
    border: none;
    font-size: 24px;
    color: #ccc;
    cursor: pointer;
    transition: color 0.3s;
}

.nav-arrow:hover {
    color: var(--primary-green);
}

/* --- Footer --- */
.main-footer {
    background-color: var(--footer-bg);
    color: #fff;
    padding: 60px 0 20px;
}

.footer-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-bottom: 40px;
}

.footer-column h4 {
    color: var(--primary-green);
    margin-bottom: 20px;
    font-size: 16px;
}

.footer-column ul li {
    margin-bottom: 10px;
}

.footer-column ul li a {
    color: #aaa;
    font-size: 14px;
    transition: color 0.3s;
}

.footer-column ul li a:hover {
    color: #fff;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #333;
    color: #666;
    font-size: 13px;
}

/* --- Responsive --- */
@media (max-width: 992px) {
    .features-container {
        flex-direction: column;
    }
    .history-container {
        flex-direction: column;
    }
    .processes-container {
        flex-direction: column;
    }
    .footer-container {
        grid-template-columns: repeat(2, 1fr);
    }
    .products-track {
        flex-direction: column;
        align-items: center;
    }
    .center-bag {
        transform: none;
    }
}

@media (max-width: 768px) {
    .top-contact-info {
        display: none;
    }
    .nav-links {
        display: none; /* Hide default nav */
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: #fff;
        padding: 20px;
        box-shadow: 0 5px 10px rgba(0,0,0,0.1);
    }
    .nav-links.active {
        display: flex;
    }
    .mobile-menu-toggle {
        display: block;
    }
    .main-heading {
        font-size: 40px;
    }
    .process-row-bottom {
        flex-direction: column;
        height: auto;
    }
    .process-square {
        height: 250px;
    }
}

/* --- Inner Pages --- */
.inner-hero {
    position: relative;
    height: 40vh;
    min-height: 300px;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    margin-top: -60px; /* pull up behind nav */
    z-index: 10;
}

.inner-hero .main-heading {
    font-size: 40px;
    margin-bottom: 10px;
}

/* --- Flagship Page Rich Styling & Animations --- */
.flagship-showcase-container {
    text-align: center;
    padding: 60px 0 20px;
    animation: fadeInUp 1s ease-out;
}

.flagship-main-img-wrapper {
    position: relative;
    display: inline-block;
    max-width: 800px;
    width: 100%;
    margin-bottom: 50px;
}

.flagship-main-img {
    width: 100%;
    height: auto;
    filter: drop-shadow(0 20px 30px rgba(0, 0, 0, 0.15));
    animation: float 6s ease-in-out infinite;
}

.flagship-badge {
    position: absolute;
    top: 10%;
    left: 5%;
    background: #f7941d;
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 12px;
    letter-spacing: 1px;
    box-shadow: 0 4px 10px rgba(247,148,29,0.3);
    animation: pulse 2s infinite;
}

.flagship-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 40px;
    /* Grid overrides */
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin-top: 40px;
    padding: 20px 0;
}

.flagship-grid .flagship-card {
    flex: 0 1 calc(33.333% - 27px);
    min-width: 250px;
}

.flagship-card {
    background: #fff;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    position: relative;
    border: 1px solid #f0f0f0;
    display: flex;
    flex-direction: column;
}

.flagship-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(14, 169, 79, 0.15);
    border-color: rgba(14, 169, 79, 0.2);
}

.flagship-img-holder {
    position: relative;
    overflow: hidden;
    padding-top: 100%; /* 1:1 Aspect Ratio */
    background: #fdfdfd;
}

.flagship-img-holder img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.flagship-card:hover .flagship-img-holder img {
    transform: scale(1.1);
}

.flagship-card-body {
    padding: 25px;
    text-align: center;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.flagship-card-body h3 {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 5px;
    color: #222;
    transition: color 0.3s;
}

.flagship-card:hover .flagship-card-body h3 {
    color: var(--primary-green);
}

.flagship-tag {
    font-size: 12px;
    font-weight: 600;
    color: var(--primary-green);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 10px;
    display: inline-block;
}

.flagship-desc {
    font-size: 14px;
    color: #666;
    margin-bottom: 20px;
    line-height: 1.5;
}

.flagship-spec {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 20px;
    font-size: 13px;
    color: #444;
    border-top: 1px solid #f0f0f0;
    border-bottom: 1px solid #f0f0f0;
    padding: 10px 0;
}

.flagship-spec span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.flagship-spec i {
    color: var(--primary-green);
}

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

@keyframes float {
    0% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-15px);
    }
    100% {
        transform: translateY(0px);
    }
}

@keyframes pulse {
    0% {
        transform: scale(1);
        box-shadow: 0 4px 10px rgba(247,148,29,0.3);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 4px 20px rgba(247,148,29,0.6);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 4px 10px rgba(247,148,29,0.3);
    }
}

/* Responsive */
@media (max-width: 992px) {
    .flagship-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }
}

@media (max-width: 768px) {
    .flagship-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

/* Superior Grid Layout */
.superior-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    /* Grid overrides */
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-top: 40px;
    padding: 20px 0;
}

.superior-grid .flagship-card {
    flex: 0 1 calc(25% - 23px);
    min-width: 220px;
}

@media (max-width: 992px) {
    .superior-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }
}

@media (max-width: 576px) {
    .superior-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

/* Middle Grid Layout (Flexbox for centering bottom row) */
.middle-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    margin-top: 40px;
    padding: 20px 0;
}

.middle-grid .flagship-card {
    flex: 0 1 calc(33.333% - 20px);
    min-width: 250px;
}

@media (max-width: 992px) {
    .middle-grid .flagship-card {
        flex: 0 1 calc(50% - 15px);
    }
}

@media (max-width: 576px) {
    .middle-grid .flagship-card {
        flex: 0 1 100%;
    }
}

/* Atta Grid Layout */
.atta-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 40px;
    max-width: 800px;
    margin: 40px auto 0;
    padding: 20px 0;
    /* Grid overrides */
    display: grid;
    grid-template-columns: repeat(2, 1fr);
}

.atta-grid .flagship-card {
    flex: 0 1 calc(50% - 20px);
    min-width: 280px;
}

@media (max-width: 768px) {
    .atta-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}



/* --- Display Centers Page --- */
.display-centers-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    margin-top: 20px;
    padding: 10px 0;
}

.display-center-card {
    background: #fff;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    border: 1px solid #f0f0f0;
    display: flex;
    flex-direction: column;
}

.display-center-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(14, 169, 79, 0.15);
    border-color: rgba(14, 169, 79, 0.2);
}

.display-card-img {
    position: relative;
    overflow: hidden;
    height: 250px;
    background: #fdfdfd;
}

.display-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.display-center-card:hover .display-card-img img {
    transform: scale(1.08);
}

.display-card-body {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.display-card-tag {
    font-size: 11px;
    font-weight: 700;
    color: var(--primary-green);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
    display: inline-block;
}

.display-card-body h4 {
    font-size: 19px;
    font-weight: 700;
    margin-bottom: 15px;
    color: #222;
    line-height: 1.3;
    transition: color 0.3s;
}

.display-center-card:hover .display-card-body h4 {
    color: var(--primary-green);
}

.display-card-address, .display-card-phone {
    font-size: 14px;
    color: var(--text-gray);
    margin-bottom: 12px;
    line-height: 1.5;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.display-card-address i, .display-card-phone i {
    color: var(--primary-green);
    margin-top: 4px;
    font-size: 14px;
    flex-shrink: 0;
}

.display-card-phone {
    margin-bottom: 0;
    font-weight: 500;
    color: #333;
}

@media (max-width: 992px) {
    .display-centers-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }
}

@media (max-width: 768px) {
    .display-centers-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}


/* --- Distribution Network Page --- */
.distributor-controls {
    background-color: #fcfcfc;
    border: 1px solid #ebebeb;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 30px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.distributor-search-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
}

.distributor-search-wrapper .search-icon {
    position: absolute;
    left: 15px;
    color: var(--text-gray);
    font-size: 16px;
    pointer-events: none;
}

#distributor-search-input {
    width: 100%;
    padding: 12px 45px;
    border: 1.5px solid #dcdcdc;
    border-radius: 8px;
    font-size: 15px;
    font-family: inherit;
    transition: all 0.3s ease;
    background-color: #fff;
    box-sizing: border-box;
}

#distributor-search-input:focus {
    outline: none;
    border-color: var(--primary-green);
    box-shadow: 0 0 0 3px rgba(14, 169, 79, 0.15);
}

#clear-search-btn {
    position: absolute;
    right: 15px;
    background: none;
    border: none;
    color: var(--text-gray);
    cursor: pointer;
    font-size: 16px;
    padding: 5px;
    transition: color 0.3s;
    display: none;
}

#clear-search-btn:hover {
    color: var(--red);
}

.alphabet-filter-container {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.alphabet-filter-container .filter-label {
    font-size: 14px;
    font-weight: 600;
    color: #444;
}

.alphabet-filter-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.alphabet-tab {
    background-color: #fff;
    border: 1px solid #dcdcdc;
    color: #555;
    padding: 5px 12px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
}

.alphabet-tab:hover {
    border-color: var(--primary-green);
    color: var(--primary-green);
    background-color: var(--light-green);
}

.alphabet-tab.active {
    background-color: var(--primary-green);
    border-color: var(--primary-green);
    color: #fff;
    font-weight: 600;
}

.distributor-table-container {
    overflow-x: auto;
    border: 1px solid #ebebeb;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.02);
    background-color: #fff;
}

.distributor-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    font-size: 14px;
}

.distributor-table th {
    background-color: var(--primary-green);
    color: #fff;
    padding: 15px 20px;
    font-weight: 600;
    font-size: 15px;
    border: none;
}

.distributor-table td {
    padding: 15px 20px;
    border-bottom: 1px solid #f0f0f0;
    color: #444;
    vertical-align: middle;
}

.distributor-row {
    transition: background-color 0.2s;
}

.distributor-row:hover {
    background-color: #fafafa;
}

.distributor-row:nth-child(even) {
    background-color: #fbfbfb;
}

.distributor-row:nth-child(even):hover {
    background-color: #fafafa;
}

.cell-city {
    font-weight: 600;
    color: #222;
}

.cell-name {
    color: #111;
}

/* Mobile responsive table */
@media (max-width: 768px) {
    .distributor-table, .distributor-table thead, .distributor-table tbody, .distributor-table th, .distributor-table td, .distributor-table tr {
        display: block;
    }
    
    .distributor-table thead {
        display: none; /* Hide header columns on mobile */
    }
    
    .distributor-row {
        margin-bottom: 15px;
        border: 1px solid #e6e6e6;
        border-radius: 8px;
        overflow: hidden;
        background-color: #fff !important;
        box-shadow: 0 2px 5px rgba(0,0,0,0.02);
    }
    
    .distributor-table td {
        border: none;
        border-bottom: 1px solid #f5f5f5;
        position: relative;
        padding-left: 45%;
        text-align: left;
        min-height: 40px;
        box-sizing: border-box;
    }
    
    .distributor-table td:last-child {
        border-bottom: none;
    }
    
    .distributor-table td::before {
        position: absolute;
        top: 15px;
        left: 15px;
        width: 40%;
        padding-right: 10px;
        white-space: nowrap;
        font-weight: 600;
        color: var(--primary-green);
        content: attr(data-label);
        font-size: 13px;
        text-transform: uppercase;
        letter-spacing: 0.5px;
    }
}

/* --- Company Profile & Sub-pages --- */

.profile-history-section {
    background-color: #eeeeee;
    width:auto;
    padding: 50px 40px;
    border-radius: 12px;
    margin-top: 40px;
    margin-bottom: 50px;
    border: 1px solid #f0f0f0;
}

/* Timeline styling */
.history-timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    padding: 20px 0;

}

.history-timeline::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 40px;
    width: 3px;
    background-color: var(--light-green);
    border-left: 2px dashed var(--primary-green);
}

.timeline-item {
    position: relative;
    margin-bottom: 40px;
    padding-left: 80px;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: 31px;
    top: 5px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background-color: #fff;
    border: 4px solid var(--primary-green);
    z-index: 2;
    box-shadow: 0 0 0 5px var(--light-green);
    transition: all 0.3s;
}

.timeline-item:hover::before {
    background-color: var(--primary-green);
    transform: scale(1.1);
}

.timeline-year {
    font-size: 14px;
    font-weight: 700;
    color: var(--primary-green);
    background-color: var(--light-green);
    display: inline-block;
    padding: 3px 12px;
    border-radius: 20px;
    margin-bottom: 10px;
    text-transform: uppercase;
}

.timeline-content {
    background-color: #fff;
    padding: 20px 25px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.02);
    border: 1px solid #f0f0f0;
    transition: all 0.3s;
}

.timeline-content:hover {
    transform: translateX(5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.05);
    border-color: rgba(14, 169, 79, 0.15);
}

.timeline-content h4 {
    font-size: 18px;
    font-weight: 700;
    color: #222;
    margin-bottom: 10px;
}

.timeline-content p {
    font-size: 14px;
    color: var(--text-gray);
    line-height: 1.6;
}

/* Infrastructure grid styling */
.infrastructure-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    margin-top: 30px;
}

.infra-card {
    background-color: #fff;
    border: 1px solid #f0f0f0;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.02);
    position: relative;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    display: flex;
    flex-direction: column;
}

.infra-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(14, 169, 79, 0.1);
    border-color: rgba(14, 169, 79, 0.2);
}

.infra-card-icon {
    font-size: 32px;
    color: var(--primary-green);
    margin-bottom: 20px;
    background-color: var(--light-green);
    width: 60px;
    height: 60px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.infra-card h4 {
    font-size: 18px;
    font-weight: 700;
    color: #222;
    margin-bottom: 12px;
}

.infra-cap {
    font-size: 13px;
    background-color: #f7f7f7;
    color: #333;
    padding: 5px 12px;
    border-radius: 6px;
    display: inline-block;
    margin-bottom: 15px;
    align-self: flex-start;
}

.infra-card p {
    font-size: 14px;
    color: var(--text-gray);
    line-height: 1.6;
}

/* Management grid styling */
.management-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    margin-top: 30px;
}

.management-card {
    background-color: #fff;
    border: 1px solid #f0f0f0;
    border-radius: 15px;
    padding: 35px 25px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.03);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.management-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(14, 169, 79, 0.12);
    border-color: rgba(14, 169, 79, 0.2);
}

.mgmt-avatar-container {
    width: 190px;
    height: 190px;
    border-radius: 50%;
    background-color: var(--light-green);
    color: var(--primary-green);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    border: 3px solid #fff;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    overflow: hidden;
}

.mgmt-avatar {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.mgmt-placeholder-icon {
    font-size: 40px;
}

.management-card h4 {
    font-size: 19px;
    font-weight: 700;
    color: #222;
    margin-bottom: 6px;
}

.mgmt-card-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--primary-green);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 2px;
}

.mgmt-card-subtitle {
    font-size: 12px;
    color: var(--text-gray);
    margin-bottom: 20px;
}

.mgmt-card-duties {
    width: 100%;
    border-top: 1px solid #f0f0f0;
    padding-top: 20px;
    text-align: left;
}

.mgmt-card-duties p {
    font-size: 13px;
    color: #555;
    margin-bottom: 10px;
    line-height: 1.5;
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.mgmt-card-duties p i {
    color: var(--primary-green);
    margin-top: 3px;
    font-size: 13px;
    flex-shrink: 0;
}

/* Masonry Gallery styling */
.masonry-gallery {
    column-count: 3;
    column-gap: 20px;
    width: 100%;
}

.masonry-item {
    display: inline-block;
    width: 100%;
    margin-bottom: 20px;
    background-color: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.03);
    border: 1px solid #f0f0f0;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    position: relative;
    break-inside: avoid;
}

.masonry-item img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.masonry-caption {
    padding: 15px 20px;
    font-size: 13px;
    font-weight: 600;
    color: #333;
    border-top: 1px solid #f9f9f9;
    background-color: #fff;
}

.masonry-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(14, 169, 79, 0.12);
    border-color: rgba(14, 169, 79, 0.2);
}

.masonry-item:hover img {
    transform: scale(1.04);
}

@media (max-width: 992px) {
    .management-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .masonry-gallery {
        column-count: 2;
    }
}

@media (max-width: 768px) {
    .infra-card {
        grid-column: span 2 !important; /* Stack infrastructure cards on small screen */
    }
    .infrastructure-grid {
        gap: 20px;
    }
    .management-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    .history-timeline::before {
        left: 20px;
    }
    .timeline-item {
        padding-left: 50px;
    }
    .timeline-item::before {
        left: 11px;
    }
}

@media (max-width: 576px) {
    .infrastructure-grid {
        grid-template-columns: 1fr;
    }
    .infra-card {
        grid-column: span 1 !important;
    }
    .masonry-gallery {
        column-count: 1;
    }
}

