/* General Styles */
body {
    font-family: 'Poppins', sans-serif;
    margin: 0;
    background-color: #f9f9f9;
    color: #333;
    line-height: 1.6;
}
.container {
    width: 90%;
    max-width: 1100px;
    margin: 0 auto;
}
h1, h2, h3, h4 {
    color: #0d2d52;
    font-weight: 600;
}
.lead {
    font-size: 1.2rem;
    color: #555;
    margin-bottom: 2rem;
}
.btn {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}
.btn-primary {
    background-color: #ff6f61;
    color: #fff;
}
.btn-primary:hover {
    background-color: #e65a50;
}
.btn-secondary {
    background-color: #0d2d52;
    color: #fff;
}

/* Header */
.site-header {
    background: #fff;
    padding: 15px 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
}
.site-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.logo img {
    max-height: 50px;
}
.main-nav ul {
    margin: 0;
    padding: 0;
    list-style: none;
}
.main-nav li {
    display: inline-block;
    margin-left: 30px;
}
.main-nav a {
    text-decoration: none;
    color: #333;
    font-weight: 600;
    position: relative;
    padding-bottom: 5px;
}
.main-nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #ff6f61;
    transition: width 0.3s ease;
}
.main-nav a:hover::after {
    width: 100%;
}

/* Hero Section */
.hero-section {
    position: relative;
    height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
    background-size: cover;
    background-position: center;
}
.hero-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background-color: rgba(13, 45, 82, 0.7);
}
.hero-content {
    position: relative;
    z-index: 2;
}
.hero-content h1 {
    font-size: 3.5rem;
    color: #fff;
    margin-bottom: 0.5rem;
}
.hero-content p {
    font-size: 1.3rem;
    max-width: 600px;
    margin: 0 auto 2rem auto;
}

/* Services Overview */
.services-overview-section {
    padding: 80px 0;
    background: #fff;
}
.section-title {
    text-align: center;
    margin-bottom: 50px;
}
.section-title h2 {
    font-size: 2.5rem;
}
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}
.service-card {
    background: #f9f9f9;
    padding: 30px;
    border-radius: 8px;
    text-align: center;
    border: 1px solid #eee;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.08);
}
.btn-read-more {
    color: #ff6f61;
    text-decoration: none;
    font-weight: 600;
}

/* Page Wrapper */
.page-wrapper {
    padding: 60px 0;
    background: #fff;
    min-height: 60vh;
}
.vision-mission {
    display: flex;
    gap: 30px;
    margin-top: 40px;
}
.vision-mission .card {
    flex: 1;
    background: #f9f9f9;
    padding: 20px;
    border-radius: 5px;
}

/* Team Page */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 20px;
    margin-bottom: 40px;
}
.team-member {
    text-align: center;
}
.team-member img {
    width: 100%;
    max-width: 200px;
    height: auto;
    border-radius: 50%;
    border: 5px solid #fff;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    margin-bottom: 15px;
}
.team-member h3 {
    margin-bottom: 5px;
}
.team-member p {
    color: #777;
    margin-top: 0;
}

/* Footer */
.site-footer-bottom {
    background-color: #0d2d52;
    color: #e0e0e0;
    padding: 50px 0 20px 0;
}
.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
}
.footer-widget h4 {
    color: #fff;
    margin-bottom: 15px;
}
.footer-widget ul {
    list-style: none;
    padding: 0;
}
.footer-widget a {
    color: #e0e0e0;
    text-decoration: none;
    transition: color 0.3s;
}
.footer-widget a:hover {
    color: #ff6f61;
}
.footer-copyright {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #1a3d66;
    font-size: 0.9rem;
}

/* Mobile Menu */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
}
.mobile-menu-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: #333;
    margin: 5px 0;
    transition: all 0.3s ease;
}

@media (max-width: 768px) {
    .main-nav {
        display: none;
        position: absolute;
        top: 80px;
        left: 0;
        width: 100%;
        background: #fff;
        box-shadow: 0 5px 10px rgba(0,0,0,0.1);
    }
    .main-nav.active {
        display: block;
    }
    .main-nav ul {
        display: block;
    }
    .main-nav li {
        display: block;
        text-align: center;
        margin: 0;
    }
    .main-nav a {
        display: block;
        padding: 15px;
        border-bottom: 1px solid #f0f0f0;
    }
    .mobile-menu-toggle {
        display: block;
    }
    .hero-content h1 {
        font-size: 2.5rem;
    }
    .vision-mission {
        flex-direction: column;
    }
}
/* -------------------- Group Structure Chart -------------------- */
.structure-chart {
    text-align: center;
    margin-top: 40px;
}
.group-parent h3 {
    display: inline-block;
    background-color: #0d2d52;
    color: #fff;
    padding: 15px 30px;
    border-radius: 8px;
    font-size: 1.5rem;
}
.group-children {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 20px;
    padding-top: 30px;
    border-top: 2px dashed #0d2d52;
    position: relative;
}
.child-card {
    background: #fff;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.07);
    text-align: left;
}
.child-card h4 {
    font-size: 1.3rem;
    border-bottom: 2px solid #ff6f61;
    padding-bottom: 10px;
    margin-top: 0;
}
.services-list {
    list-style: none;
    padding: 0;
    margin: 15px 0 0 0;
}
.services-list li {
    padding: 8px 0;
    border-bottom: 1px solid #f0f0f0;
}
.services-list li:last-child {
    border-bottom: none;
}
/* -------------------- Group Structure Homepage -------------------- */
.group-structure-section {
    padding: 80px 0;
    background: #fff;
}
.group-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}
.group-card {
    display: block;
    background: #f9f9f9;
    padding: 30px;
    border-radius: 8px;
    border: 1px solid #eee;
    text-align: center;
    text-decoration: none;
    color: #333;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.group-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.08);
    color: #0d2d52;
}
.group-card h3 {
    margin-top: 0;
    color: #0d2d52;
}
/* -------------------- Contact Page -------------------- */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
}
@media (min-width: 768px) {
    .contact-grid {
        grid-template-columns: 1fr 1fr;
    }
}
.contact-info h3 {
    border-left: 4px solid #ff6f61;
    padding-left: 15px;
    margin-top: 30px;
}
.section-divider {
    border: 0;
    height: 1px;
    background-color: #e0e0e0;
    margin: 60px 0;
}
.branch-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}
.branch-item {
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    border-left: 5px solid #0d2d52;
}
.branch-item h4 {
    margin: 0 0 5px 0;
}
.branch-item p {
    margin: 0;
    color: #777;
    font-size: 0.9rem;
}
/* -------------------- Coming Soon Page -------------------- */
.coming-soon-content {
    text-align: center;
    padding: 80px 20px;
    background-color: #fff;
    border-radius: 8px;
    margin: 40px 0;
}
.coming-soon-content h1 {
    font-size: 2rem;
    color: #0d2d52;
}
.coming-soon-content h2 {
    font-size: 2.5rem;
    color: #ff6f61;
    margin-top: 0;
}
.coming-soon-content p {
    font-size: 1.1rem;
    max-width: 600px;
    margin: 20px auto;
}
/* -------------------- Text-based Team Members -------------------- */
.team-grid-text {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 20px;
}
.team-member-text {
    background: #f9f9f9;
    padding: 20px;
    border-radius: 8px;
    border-left: 5px solid #ff6f61;
}
.team-member-text h3 {
    margin: 0 0 5px 0;
}
.team-member-text p {
    margin: 0;
    color: #777;
}
/* -------------------- Homepage Card Logos -------------------- */
.group-card {
    align-items: center;
    display: flex;
    text-align: left;
}
.card-logo {
    flex-shrink: 0;
    margin-right: 20px;
    width: 60px;
    height: 60px;
}
.card-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}
.card-content {
    flex-grow: 1;
}
.card-content h3, .card-content p {
    margin: 0;
}
/* -------------------- Centered Page Hero with Logo -------------------- */
.page-hero-centered {
    text-align: center;
    padding: 40px 0;
    border-bottom: 1px solid #eee;
    margin-bottom: 40px;
}
.page-hero-centered img {
    max-height: 100px; /* Makes the logo larger */
    margin-bottom: 20px;
}
.page-hero-centered h1 {
    font-size: 2.8rem;
    margin: 0;
}
/* Adjust coming soon page for new hero */
.page-wrapper .coming-soon-content {
    margin-top: 0;
    padding-top: 0; /* Remove extra padding */
    border: none; /* Remove extra styling */
}
/* -------------------- Developer Credit in Footer -------------------- */
.developer-credit {
    margin-top: 10px;
    font-size: 0.8rem; /* Makes the text smaller */
}
.developer-credit a {
    color: #a0a0a0; /* A slightly dimmer color */
    text-decoration: none;
}
.developer-credit a:hover {
    color: #fff; /* Brightens on hover */
}

/* -------------------- Service Page Content Image -------------------- */
.page-content-image {
    margin-bottom: 40px;
    overflow: hidden; /* Add this line */
}


/* Add these styles to the BOTTOM of your existing style.css file */

/* --- Cart Icon --- */
.header-icons {
    display: flex;
    align-items: center;
}
.cart-icon {
    position: relative;
    margin-right: 15px;
    font-size: 1.5rem;
    text-decoration: none;
}
.cart-count {
    position: absolute;
    top: -5px;
    right: -10px;
    background-color: #ff6f61;
    color: #fff;
    border-radius: 50%;
    padding: 2px 6px;
    font-size: 0.7rem;
    font-weight: bold;
}

/* --- Product Grid --- */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}
.product-card {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.07);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}
.product-image {
    aspect-ratio: 1 / 1; /* This forces the container to be a perfect square */
    overflow: hidden;    /* This hides any parts of the image that spill out */
}

.product-image img {
    width: 100%;
    height: 100%;       /* This makes the image fill the square container */
    object-fit: cover;  /* This crops the image to fit, preventing distortion */
}
.product-info {
    padding: 20px;
    text-align: center;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
.product-price {
    font-size: 1.2rem;
    font-weight: 600;
    color: #0d2d52;
    margin: 10px 0;
}

/* -------------------- Shopping Cart Section -------------------- */
.cart-section {
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    margin-bottom: 40px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}
.cart-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}
.cart-table th, .cart-table td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid #eee;
}
.cart-table th {
    font-weight: 600;
}
.cart-table td img {
    margin-right: 15px;
    vertical-align: middle;
}
.remove-btn {
    background-color: #d9534f;
    color: #fff;
    border: none;
    padding: 8px 12px;
    border-radius: 4px;
    cursor: pointer;
}
.cart-total {
    text-align: right;
    margin-top: 20px;
}

/* -------------------- Catchy Dark Theme -------------------- */
.catchy-dark-theme {
    background-color: #1a1a1a;
}
.catchy-dark-theme .page-hero-centered h1,
.catchy-dark-theme .product-card h3 {
    color: #ffffff;
}
.catchy-dark-theme .product-card {
    background-color: #2c2c2c;
    border-color: #444;
}
.catchy-dark-theme .product-description {
    color: #b0b0b0;
    font-size: 0.9rem;
    min-height: 60px; /* Ensures cards are the same height */
}
.catchy-dark-theme .product-price {
    color: #ffc107; /* A nice gold color for the price */
}
/* -------------------- Dark Theme Homepage Card -------------------- */
.group-card.dark-card {
    background-color: #2c2c2c;
    border-color: #444;
}
.group-card.dark-card h3 {
    color: #ffffff;
}
.group-card.dark-card p {
    color: #b0b0b0;
}
.group-card.dark-card:hover {
    border-color: #ff6f61;
}
/* -------------------- Hero Image Slider -------------------- */
.hero-slider {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}
.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1.5s ease-in-out; /* Controls the fade speed */
}
.slide.active {
    opacity: 1;
}
/* Make sure the hero content appears on top of the slider */
.hero-overlay, .hero-content {
    z-index: 2;
}

/* -------------------- Language Toggle -------------------- */
.lang-toggle {
    margin: 40px 0 20px 0;
    text-align: center;
}
.lang-toggle button {
    background-color: #e0e0e0;
    color: #333;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 600;
    margin: 0 5px;
    transition: background-color 0.3s;
}
.lang-toggle button.active {
    background-color: #0d2d52;
    color: #fff;
}
.lang-content {
    display: none; /* Hide all language content by default */
}
.lang-content.active {
    display: block; /* Show only the active language content */
}
/* -------------------- Centered Page Title -------------------- */
.page-title-centered {
    text-align: center;
    font-size: 2.8rem;
    margin-bottom: 20px;
}

/* -------------------- Live Image Animation Effect -------------------- */

/* This prepares the images for a long, slow animation */
.team-member img,
.page-content-image img,
.card-logo img {
    transform: scale(1.15) rotate(-2deg); /* Start slightly zoomed in and rotated */
    transition: transform 8s ease-out;   /* A long, smooth 8-second transition */
}

/* This makes the image slowly zoom out and straighten when you:
1. Hover over its container (for desktop users).
2. OR when the 'is-visible' class is added by JavaScript (for mobile scroll).
*/
.team-member:hover img,
.team-member.is-visible img,
.page-content-image:hover img,
.page-content-image.is-visible img,
.group-card:hover .card-logo img,
.group-card.is-visible .card-logo img {
    transform: scale(1) rotate(0deg); /* Zoom out to normal size and straighten */
}

/* -------------------- Branch Direction Link -------------------- */
.direction-link {
    display: inline-block;
    margin-top: 10px;
    font-weight: 600;
    color: #ff6f61;
    text-decoration: none;
}
.direction-link:hover {
    text-decoration: underline;
}