/* ===================== Variables ===================== */
:root {
    --bg1-color: #013365;
    --bg3-color: #ffffff;
    --button-color: #e9292f;
    --text-color: #6B7280;
    --sub-text: #000000;
    --gold-color: #dda83d;
    --primary-color: #013365;
    --secondary-color: #dda83d;
    --primary-light: #1f3a93;
    --secondary-light: #e1b64c;
    --dark-color: #333;
    --light-color: #fff;
    --shadow-md: 0 4px 15px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 8px 25px rgba(0, 0, 0, 0.15);
    --shadow-xl: 0 15px 35px rgba(0, 0, 0, 0.2);
    --transition: all 0.3s ease;
}

/* ===================== Container ===================== */
.container,
.section-container {
    max-width: 1200px;
    margin: auto;
    padding: 0 20px;
}

/* ===================== CSR Hero Section ===================== */
.csr-hero {
    background:url('../image/sustainibility/Sustainibility.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: white;
    padding: 150px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.csr-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 100px;
    width: 100%;
    height: 100%;
    position: absolute;
    left: 25px;
    top: 38px;
    overflow: hidden;
    filter: blur(75px);
    z-index: 1;
}

.csr-hero .section-container {
    position: relative;
    z-index: 2;
}

.csr-hero h1 {
    font-size: 38px;
    margin-bottom: 20px;
    animation: fadeInUp 1s ease both;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.csr-hero p {
    font-size: 16px;
    max-width: 800px;
    margin: 0 auto;
    color: var(--bg3-color);
    animation: fadeInUp 1s ease 0.2s both;
    text-shadow: 0 1px 5px rgba(0, 0, 0, 0.2);
}

/* ===================== Key Initiatives Section ===================== */
.csr-section {
    padding: 50px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
    color: var(--button-color);
    font-size: 36px;
    position: relative;
}

.section-container .section-title svg {
    margin-bottom: 5px;
}

.section-title:after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: var(--secondary-color);
    margin: 15px auto 0;
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 0.6s ease 0.3s;
}

.section-title.animate:after {
    transform: scaleX(1);
}

/* Tabs */
.initiatives-container {
    background-color: white;
    border-radius: 15px;
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    position: relative;
}

.initiative-tabs {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    /* 2 buttons per row */
    gap: 1px;
    /* optional small gap between buttons */
    border-bottom: 1px solid #eee;
}

.tab-btn {
    padding: 20px;
    text-align: center;
    background: #f9f9f9;
    border: none;
    cursor: pointer;
    font-weight: 600;
    color: var(--dark-color);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.tab-btn.active {
    background: linear-gradient(to right, var(--bg1-color), var(--gold-color));
    color: white;
}

/* Tab content */
.tab-content {
    display: none;
    padding: 20px;
    position: relative;
    opacity: 0;
    transition: all 0.6s ease;
}

.tab-content.active {
    display: block;
    opacity: 1;
    animation: fadeIn 0.8s ease;
}

.initiative-content {
    display: flex;
    align-items: center;
    gap: 40px;
}

.initiative-text {
    flex: 1;
    transform: translateX(-50px);
    opacity: 0;
    transition: all 0.8s ease;
}

.initiative-image {
    flex: 1;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    position: relative;
    transform: translateX(50px);
    opacity: 0;
    transition: all 0.8s ease;
}

.csr-left {
    transform: translateX(-50px);
    opacity: 0;
    transition: all 0.8s ease;
}

.tab-content.active .csr-left {
    transform: translateX(0);
    opacity: 1;
}

.csr-right {
    transform: translateX(50px);
    opacity: 0;
    transition: all 0.8s ease;
}

.tab-content.active .csr-right {
    transform: translateX(0);
    opacity: 1;
}

.initiative-text h3 {
    color: var(--bg1-color);
    margin-bottom: 20px;
    font-size: 1.3rem !important;
    position: relative;
}

.initiative-text h3:after {
    content: '';
    position: absolute;
    width: 50%;
    height: 3px;
    background: var(--secondary-color);
    bottom: -8px;
    left: 0;
}

.initiative-text ul {
    margin: 20px 0;
    padding-left: 20px;
}

.initiative-text li {
    margin-bottom: 10px;
    position: relative;
    padding-left: 15px;
    list-style: none;
    color: #333;
}

.initiative-text li:before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--gold-color);
    font-weight: bold;
}

.initiative-image img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.8s ease;
}

.initiative-image:hover img {
    transform: scale(1.1) rotate(1deg);
}

/* Optional: Responsive adjustments */
@media (max-width: 768px) {
    .initiative-tabs {
        /* grid-template-columns: 1fr;
        1 button per row on small screens */
    }

    .initiative-content {
        flex-direction: column;
    }
}




/* ===================== Our Sustainability Approach ===================== */
.pillars-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
    perspective: 1000px;
}

.pillar-card p {
    padding: 0 10px;
}

.pillar-card {
    background: white;
    border-radius: 15px;
    text-align: center;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    border: 1px solid rgba(201, 160, 77, 0.3);
    position: relative;
    overflow: hidden;
    transform-style: preserve-3d;
}

.pillar-card:hover {
    transform: translateY(-10px) scale(1.03);
    box-shadow: var(--shadow-xl);
    border-color: var(--secondary-color);
}

.pillar-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: var(--secondary-color);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.5s ease;
}

.pillar-card:hover::before {
    transform: scaleX(1);
}

.pillar-icon {
    font-size: 50px;
    margin-bottom: 20px;
}

.pillar-icon img {
    width: 100%;
    height: auto;
    object-fit: contain;
    transition: var(--transition);
}

.floating {
    animation: floating 3s ease-in-out infinite;
}

@keyframes floating {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-15px);
    }

    100% {
        transform: translateY(0px);
    }
}

.pillar-title {
    font-size: 22px !important;
    margin-bottom: 15px;
    color: var(--bg1-color);
    position: relative;
}

.pillar-title:after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    bottom: -5px;
    left: 0;
    transition: var(--transition);
}

.pillar-card:hover .pillar-title:after {
    width: 100%;
}

/* ===================== Gallery Section ===================== */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 50px;
}

.gallery-item {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    height: 250px;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    transform: scale(0.9);
}

.gallery-item:hover {
    transform: scale(1.03);
    box-shadow: var(--shadow-xl);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(31, 58, 147, 0.9) 0%, transparent 100%);
    color: white;
    padding: 15px;
    font-weight: 600;
    text-align: center;
    font-size: 16px;
}

/* ===================== Animations ===================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* ===================== Responsive ===================== */
@media (max-width: 992px) {
    .initiative-content {
        flex-direction: column;
    }
}