/* CSS Variables & Reset */
:root {
    --primary-color: #008080;
    /* Teal - associated with kidney awareness */
    --secondary-color: #20B2AA;
    /* Light Sea Green */
    --accent-color: #FF7F50;
    /* Coral - warm accent */
    --dark-color: #2C3E50;
    --light-color: #ECF0F1;
    --white: #ffffff;
    --text-color: #333333;
    --text-light: #666666;
    --bg-light: #f9f9f9;
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    --border-radius: 8px;
    --box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--white);
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Playfair Display', serif;
    color: var(--dark-color);
    margin-bottom: var(--spacing-sm);
    line-height: 1.2;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Utilities */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-sm);
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    letter-spacing: 0.5px;
    cursor: pointer;
    border: 2px solid transparent;
    transition: var(--transition);
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--white);
}

.btn-primary:hover {
    background-color: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 128, 128, 0.3);
}

.btn-secondary {
    background-color: transparent;
    color: var(--white);
    border-color: var(--white);
}

.btn-secondary:hover {
    background-color: var(--white);
    color: var(--primary-color);
}

.btn-white {
    background-color: var(--white);
    color: var(--primary-color);
}

.btn-white:hover {
    background-color: var(--light-color);
    transform: translateY(-2px);
}

.block-btn {
    width: 100%;
    text-align: center;
}

.center {
    text-align: center;
}

/* Header */
.header {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    padding: 15px 0;
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    color: var(--primary-color);
}

.logo-icon {
    font-size: 2rem;
}

.logo-text {
    font-family: 'Playfair Display', serif;
    font-size: 1.2rem;
    line-height: 1;
}

.logo-sub {
    font-size: 0.8rem;
    font-family: 'Inter', sans-serif;
    color: var(--text-light);
    font-weight: 400;
}

.nav {
    display: flex;
    align-items: center;
    gap: 30px;
}

.nav-list {
    display: flex;
    gap: 30px;
    align-items: center;
}

.nav-link {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--dark-color);
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: var(--primary-color);
    transition: var(--transition);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.donate-btn {
    padding: 10px 25px;
    font-size: 0.9rem;
}

/* Mobile Menu */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    padding: 5px;
}

.mobile-menu-btn span {
    width: 25px;
    height: 3px;
    background-color: var(--dark-color);
    transition: var(--transition);
}

/* Hero Section */
.hero {
    height: 100vh;
    min-height: 600px;
    background: url('https://images.unsplash.com/photo-1532938911079-1b06ac7ceec7?ixlib=rb-4.0.3&auto=format&fit=crop&w=1920&q=80') no-repeat center center/cover;
    position: relative;
    display: flex;
    align-items: center;
    color: var(--white);
    margin-top: 0;
}

.page-hero {
    height: 50vh;
    min-height: 400px;
    background: url('https://images.unsplash.com/photo-1544367563-12123d8d3e66?ixlib=rb-4.0.3&auto=format&fit=crop&w=1920&q=80') no-repeat center center/cover;
    position: relative;
    display: flex;
    align-items: center;
    color: var(--white);
    margin-top: 80px;
    /* Offset for fixed header */
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 128, 128, 0.85), rgba(44, 62, 80, 0.75));
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--white);
}

.hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: 30px;
    max-width: 650px;
    opacity: 0.95;
    font-weight: 300;
}

.hero-buttons {
    display: flex;
    gap: 15px;
}

/* Section Common */
.section {
    padding: 5rem 0;
}

.section-header {
    margin-bottom: 4rem;
}

.section-title {
    font-size: 2.5rem;
    color: var(--dark-color);
    margin-bottom: 10px;
}

.section-subtitle {
    color: var(--text-light);
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
}

.title-underline {
    width: 80px;
    height: 4px;
    background-color: var(--primary-color);
    margin: 0 auto;
    border-radius: 2px;
}

/* About Section */
.about {
    background-color: var(--white);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.image-placeholder {
    width: 100%;
    height: 400px;
    background: linear-gradient(45deg, var(--bg-light), #e0e0e0);
    border-radius: var(--border-radius);
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    position: relative;
}

.image-placeholder i {
    font-size: 8rem;
    color: rgba(0, 128, 128, 0.1);
}

.about-text h3 {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
}

.about-text p {
    margin-bottom: 1.5rem;
    color: var(--text-light);
}

.values-list {
    margin-top: 1.5rem;
}

.values-list li {
    margin-bottom: 10px;
    display: flex;
    align-items: start;
    gap: 10px;
}

.values-list i {
    color: var(--primary-color);
    margin-top: 5px;
}

/* Programs/Mission Section */
.programs {
    background-color: var(--bg-light);
}

.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.card {
    background: var(--white);
    padding: 2.5rem 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    text-align: center;
    transition: var(--transition);
}

.card:hover {
    transform: translateY(-10px);
}

.card-icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.card h3 {
    font-size: 1.4rem;
    margin-bottom: 1rem;
}

.card p {
    color: var(--text-light);
    font-size: 0.95rem;
}

/* CTA Section */
.cta-section {
    background: url('https://images.unsplash.com/photo-1576091160399-112ba8d25d1d?ixlib=rb-4.0.3&auto=format&fit=crop&w=1920&q=80') no-repeat center center/cover;
    position: relative;
    color: var(--white);
    text-align: center;
    padding: 6rem 0;
}

.cta-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 50, 50, 0.85);
}

.cta-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
}

.cta-content h2 {
    color: var(--white);
    font-size: 2.8rem;
    margin-bottom: 1.5rem;
}

.cta-content p {
    font-size: 1.2rem;
    margin-bottom: 2.5rem;
    opacity: 0.9;
}

/* Donation Page Styles */
.donate-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 4rem;
    align-items: start;
}

.donate-form-wrapper {
    background: var(--white);
    padding: 2.5rem;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    border: 1px solid #eee;
}

.donate-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.donate-header h3 {
    font-size: 1.5rem;
    margin-bottom: 0;
}

.donate-frequency {
    display: flex;
    background: var(--bg-light);
    padding: 4px;
    border-radius: 50px;
}

.freq-btn {
    padding: 8px 20px;
    border: none;
    background: transparent;
    border-radius: 50px;
    cursor: pointer;
    font-weight: 500;
    color: var(--text-light);
    transition: var(--transition);
}

.freq-btn.active {
    background: var(--primary-color);
    color: var(--white);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.amount-options {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin-bottom: 2rem;
}

.amount-btn {
    padding: 15px;
    border: 2px solid #eee;
    background: var(--white);
    border-radius: var(--border-radius);
    font-size: 1.2rem;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    color: var(--dark-color);
}

.amount-btn:hover {
    border-color: var(--primary-color);
}

.amount-btn.active {
    border-color: var(--primary-color);
    background: var(--primary-color);
    color: var(--white);
}

.custom-amount {
    position: relative;
    display: flex;
    align-items: center;
}

.custom-amount span {
    position: absolute;
    left: 15px;
    font-weight: 700;
    color: var(--text-light);
}

.custom-amount input {
    width: 100%;
    padding: 15px 15px 15px 30px;
    border: 2px solid #eee;
    border-radius: var(--border-radius);
    font-size: 1rem;
    font-weight: 600;
    transition: var(--transition);
}

.custom-amount input:focus {
    outline: none;
    border-color: var(--primary-color);
}

.impact-preview {
    background: linear-gradient(135deg, rgba(32, 178, 170, 0.1), rgba(0, 128, 128, 0.05));
    padding: 1.5rem;
    border-radius: var(--border-radius);
    display: flex;
    gap: 15px;
    align-items: center;
    margin-bottom: 2rem;
}

.impact-preview i {
    font-size: 2rem;
    color: var(--primary-color);
}

.impact-preview p {
    font-size: 0.95rem;
    color: var(--dark-color);
    margin-bottom: 0;
}

.payment-info h4 {
    margin-bottom: 1.5rem;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.secure-note {
    text-align: center;
    margin-top: 1rem;
    font-size: 0.85rem;
    color: var(--text-light);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

.donate-impact h3 {
    font-size: 2rem;
    color: var(--primary-color);
}

.impact-intro {
    font-size: 1.1rem;
    margin-bottom: 2.5rem;
}

.impact-item {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.impact-item .impact-icon {
    width: 60px;
    height: 60px;
    background: rgba(32, 178, 170, 0.15);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-shrink: 0;
}

.impact-item .impact-icon i {
    font-size: 1.5rem;
    color: var(--primary-color);
}

.impact-details h4 {
    margin-bottom: 5px;
    font-size: 1.1rem;
}

.impact-details p {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-bottom: 0;
}

.trust-badges {
    display: flex;
    gap: 1.5rem;
    margin-top: 3rem;
    border-top: 1px solid #eee;
    padding-top: 2rem;
}

.badge {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    text-align: center;
}

.badge i {
    font-size: 1.5rem;
    color: var(--text-light);
}

.badge span {
    font-size: 0.8rem;
    color: var(--text-light);
    font-weight: 500;
}

/* Contact Section */
.contact {
    background-color: var(--white);
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 4rem;
}

.contact-info {
    padding: 2rem;
    background-color: var(--bg-light);
    border-radius: var(--border-radius);
}

.info-item {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.info-item i {
    font-size: 1.2rem;
    color: var(--primary-color);
    margin-top: 5px;
}

.info-item h4 {
    margin-bottom: 5px;
    font-size: 1.1rem;
}

.info-item p {
    color: var(--text-light);
    font-size: 0.95rem;
}

.social-links {
    margin-top: 3rem;
    display: flex;
    gap: 1rem;
}

.social-links a {
    width: 40px;
    height: 40px;
    background-color: var(--white);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--primary-color);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
}

.social-links a:hover {
    background-color: var(--primary-color);
    color: var(--white);
    transform: translateY(-3px);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: var(--border-radius);
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 5px rgba(0, 128, 128, 0.2);
}

/* Footer Styles */
.footer {
    background: linear-gradient(180deg, #1e2c3b 0%, #111a24 100%);
    color: var(--white);
    padding: 5rem 0 2rem 0;
    position: relative;
    border-top: 4px solid var(--primary-color);
}

/* Subtle accent overlay on footer */
.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 80% 20%, rgba(0, 128, 128, 0.08) 0%, transparent 50%);
    pointer-events: none;
}

.footer-container {
    position: relative;
    z-index: 2;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
    gap: 3rem;
    margin-bottom: 4rem;
}

.footer-col h4 {
    color: var(--white);
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 1.8rem;
    position: relative;
    padding-bottom: 0.6rem;
    font-family: 'Inter', sans-serif;
}

.footer-col h4::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 40px;
    height: 3px;
    background-color: var(--primary-color);
    border-radius: 2px;
}

.footer-brand .footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 1.5rem;
}

.footer-brand .logo-icon {
    font-size: 2.2rem;
    color: var(--primary-color);
    filter: drop-shadow(0 0 5px rgba(0, 128, 128, 0.3));
}

.footer-brand .logo-text {
    font-family: 'Playfair Display', serif;
    font-size: 1.3rem;
    line-height: 1.1;
}

.footer-brand .logo-sub {
    font-size: 0.85rem;
    font-family: 'Inter', sans-serif;
    color: var(--secondary-color);
    font-weight: 500;
}

.brand-desc {
    font-size: 0.95rem;
    line-height: 1.7;
    opacity: 0.75;
    margin-bottom: 1.8rem;
    color: var(--light-color);
}

.footer-contact-info p {
    font-size: 0.95rem;
    margin-bottom: 0.8rem;
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--light-color);
    opacity: 0.85;
}

.footer-contact-info p i {
    color: var(--primary-color);
    width: 16px;
}

.footer-contact-info p a:hover {
    color: var(--primary-color);
}

.footer-links-list li {
    margin-bottom: 1rem;
}

.footer-links-list li a {
    color: var(--light-color);
    opacity: 0.8;
    font-size: 0.95rem;
    display: inline-flex;
    align-items: center;
    gap: 0;
    transition: all 0.3s ease;
}

.footer-links-list li a::before {
    content: '→';
    font-family: 'Inter', sans-serif;
    color: var(--primary-color);
    opacity: 0;
    width: 0;
    display: inline-block;
    transition: all 0.3s ease;
}

.footer-links-list li a:hover {
    opacity: 1;
    color: var(--white);
    padding-left: 5px;
}

.footer-links-list li a:hover::before {
    opacity: 1;
    width: 15px;
    margin-right: 5px;
}

.footer-newsletter p {
    font-size: 0.95rem;
    opacity: 0.75;
    margin-bottom: 1.5rem;
    line-height: 1.6;
    color: var(--light-color);
}

.footer-newsletter-form {
    display: flex;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 30px;
    padding: 4px;
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
}

.footer-newsletter-form:focus-within {
    border-color: var(--primary-color);
    box-shadow: 0 0 10px rgba(0, 128, 128, 0.2);
    background: rgba(255, 255, 255, 0.12);
}

.footer-newsletter-form input {
    flex: 1;
    background: transparent;
    border: none;
    padding: 10px 15px;
    color: var(--white);
    font-size: 0.9rem;
}

.footer-newsletter-form input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.footer-newsletter-form input:focus {
    outline: none;
}

.footer-newsletter-form button {
    background-color: var(--primary-color);
    border: none;
    color: var(--white);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.3s ease;
}

.footer-newsletter-form button:hover {
    background-color: var(--secondary-color);
    transform: scale(1.05);
}

.footer-social {
    margin-top: 0 !important;
}

.footer-social a {
    background-color: rgba(255, 255, 255, 0.05) !important;
    color: var(--white) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
}

.footer-social a:hover {
    background-color: var(--primary-color) !important;
    color: var(--white) !important;
    box-shadow: 0 0 15px rgba(0, 128, 128, 0.4) !important;
}

.copyright {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin-top: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 2rem;
    width: 100%;
    text-align: left;
    font-size: 0.9rem;
    opacity: 0.75;
}

.footer-bottom-links {
    display: flex;
    gap: 1.5rem;
}

.footer-bottom-links a {
    color: var(--light-color);
    opacity: 0.7;
    transition: all 0.3s ease;
}

.footer-bottom-links a:hover {
    opacity: 1;
    color: var(--primary-color);
}

/* Footer Responsive styles */
@media (max-width: 1024px) {
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 3rem;
    }
}

@media (max-width: 600px) {
    .footer {
        padding: 4rem 0 2rem 0;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
    
    .copyright {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
}

/* Animations */
.fade-in,
.fade-in-left,
.fade-in-right,
.fade-in-up {
    opacity: 0;
    transition: all 0.8s ease-out;
}

.fade-in {
    transform: translateY(0);
}

.fade-in-left {
    transform: translateX(-30px);
}

.fade-in-right {
    transform: translateX(30px);
}

.fade-in-up {
    transform: translateY(30px);
}

.visible {
    opacity: 1;
    transform: translate(0, 0);
}

.delay-1 {
    transition-delay: 0.2s;
}

.delay-2 {
    transition-delay: 0.4s;
}

.delay-3 {
    transition-delay: 0.6s;
}

/* Responsive */
@media (max-width: 900px) {

    .about-grid,
    .contact-wrapper,
    .donate-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .hero-title {
        font-size: 2.8rem;
    }

    .amount-options {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .mobile-menu-btn {
        display: flex;
    }

    .nav {
        display: none;
        /* Hide for now, can implement slide out later */
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: var(--white);
        padding: 20px;
        box-shadow: 0 10px 10px rgba(0, 0, 0, 0.1);
        text-align: center;
    }

    .nav.active {
        display: block;
    }

    .nav-list {
        flex-direction: column;
        margin-bottom: 20px;
    }

    .nav-actions {
        flex-direction: column;
        width: 100%;
        gap: 15px !important;
    }

    .nav-actions .btn {
        width: 100%;
    }

    .hero-title {
        font-size: 2.2rem;
    }

    .section-title {
        font-size: 2rem;
    }
}

/* ==========================================================================
   Detail Subpages Layout & Styles
   ========================================================================== */

/* Card Learn More Link */
.btn-link {
    color: var(--primary-color);
    font-weight: 600;
    font-size: 0.95rem;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin-top: 1.5rem;
    transition: var(--transition);
}

.btn-link i {
    transition: transform 0.3s ease;
}

.btn-link:hover {
    color: var(--secondary-color);
}

.btn-link:hover i {
    transform: translateX(5px);
}

/* Subpage Heroes */
.about-hero {
    background: url('https://images.unsplash.com/photo-1582213782179-e0d53f98f2ca?ixlib=rb-4.0.3&auto=format&fit=crop&w=1920&q=80') no-repeat center center/cover !important;
}

.mission-hero {
    background: url('https://images.unsplash.com/photo-1488521787991-ed7bbaae773c?ixlib=rb-4.0.3&auto=format&fit=crop&w=1920&q=80') no-repeat center center/cover !important;
}

.programs-hero {
    background: url('https://images.unsplash.com/photo-1576091160399-112ba8d25d1d?ixlib=rb-4.0.3&auto=format&fit=crop&w=1920&q=80') no-repeat center center/cover !important;
}

/* Breadcrumbs */
.breadcrumbs {
    display: flex;
    gap: 10px;
    font-size: 0.9rem;
    margin-top: 15px;
    opacity: 0.9;
    font-weight: 400;
}

.breadcrumbs a {
    color: var(--white);
    text-decoration: none;
    transition: var(--transition);
}

.breadcrumbs a:hover {
    text-decoration: underline;
    color: var(--secondary-color);
}

.breadcrumbs span {
    opacity: 0.6;
}

/* Subpage Layouts */
.detail-grid {
    display: grid;
    grid-template-columns: 1.8fr 1.2fr;
    gap: 4rem;
    align-items: start;
}

.detail-content {
    background: var(--white);
}

.detail-content h3 {
    font-size: 1.8rem;
    color: var(--primary-color);
    margin-top: 2.5rem;
    margin-bottom: 1.2rem;
    border-bottom: 2px solid var(--light-color);
    padding-bottom: 0.5rem;
}

.detail-content h3:first-of-type {
    margin-top: 0;
}

.detail-content p {
    color: var(--text-light);
    margin-bottom: 1.5rem;
    font-size: 1.05rem;
    line-height: 1.8;
}

.detail-sidebar {
    background: var(--bg-light);
    padding: 2.5rem;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.detail-sidebar h4 {
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
    color: var(--dark-color);
    border-bottom: 1px solid #ddd;
    padding-bottom: 10px;
}

.sidebar-info-list {
    margin-bottom: 2rem;
    padding-left: 0;
}

.sidebar-info-list li {
    margin-bottom: 1.2rem;
    font-size: 0.95rem;
    color: var(--text-color);
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.sidebar-info-list li strong {
    color: var(--dark-color);
    font-size: 1rem;
}

.sidebar-links {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.sidebar-links .btn {
    text-align: center;
}

/* Key Highlights or Value boxes */
.highlight-box {
    background: linear-gradient(135deg, rgba(32, 178, 170, 0.08), rgba(0, 128, 128, 0.04));
    border-left: 4px solid var(--primary-color);
    padding: 1.8rem;
    border-radius: 0 var(--border-radius) var(--border-radius) 0;
    margin: 2.5rem 0;
}

.highlight-box p {
    margin-bottom: 0;
    font-style: italic;
    color: var(--dark-color);
}

.list-styled {
    margin-bottom: 2rem;
    padding-left: 0;
}

.list-styled li {
    position: relative;
    padding-left: 28px;
    margin-bottom: 12px;
    color: var(--text-light);
    font-size: 1.05rem;
    list-style: none;
}

.list-styled li::before {
    content: "\f00c";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    position: absolute;
    left: 0;
    top: 4px;
    color: var(--primary-color);
    font-size: 0.9rem;
}

/* Target Program Highlight sections */
.program-detail-block {
    scroll-margin-top: 100px;
    padding-top: 1rem;
    margin-bottom: 4rem;
}

.program-detail-block:not(:last-of-type) {
    border-bottom: 1px dashed #ddd;
    padding-bottom: 3rem;
}

/* responsive details */
@media (max-width: 900px) {
    .detail-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
}

/* Edit Section Button and Container Styling */
.section {
    position: relative;
}

.edit-section-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    background-color: var(--accent-color);
    color: var(--white) !important;
    border: none;
    padding: 8px 16px;
    border-radius: 30px;
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
    z-index: 99;
    transition: all 0.3s ease;
    opacity: 0.25;
}

.edit-section-btn i {
    font-size: 0.9rem;
}

.hero:hover .edit-section-btn,
.section:hover .edit-section-btn,
.page-hero:hover .edit-section-btn,
.edit-section-btn:hover {
    opacity: 1;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(255, 127, 80, 0.4);
}

/* Hide edit button in iframe editor mode */
body.edit-mode .edit-section-btn {
    display: none !important;
}