:root {
    --primary: #c41e3a;
    --secondary: #1e4d8c;
    --border: #e5e5e5;
    --muted: #666;
}

:root {
    --bg: #ffffff;
    --bg-light: #fafafa;
    --primary: #c41e3a;
    --primary-dark: #9a1830;
    --primary-light: #e8526a;
    --secondary: #1e4d8c;
    --secondary-light: #3a6db5;
    --accent: #2d8b57;
    --accent-light: #4aad76;
    --fg: #1a1a1a;
    --fg-muted: #ffffff;
    --muted: #666666;
    --card: #ffffff;
    --border: #e5e5e5;
    --shadow: rgba(0, 0, 0, 0.08);
}

* {
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    color: var(--fg);
    background-color: var(--bg);
}

/* layout */
body {
    font-family: Arial;
    margin: 0;
}

/* Navigation */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 1rem 2rem;
    background: transparent;
    transition: all 0.3s ease;
    border-bottom: 1px solid transparent;
}

.nav.scrolled {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px var(--shadow);
    border-bottom: 1px solid var(--border);
}

.nav.scrolled .logo-text {
    color: var(--fg);
}

.nav.scrolled .logo-text span {
    color: var(--muted);
}

.nav.scrolled .nav-links a {
    color: var(--fg);
}

.nav.scrolled .nav-links a:hover {
    color: var(--primary);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 1rem;
    text-decoration: none;
}

.logo-img {
    height: 50px;
    width: auto;
}

.logo-text {
    font-family: 'Libre Baskerville', serif;
    font-size: 1.4rem;
    font-weight: 700;
    color: #ffffff;
    line-height: 1.2;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.logo-text span {
    display: block;
    font-size: 0.7rem;
    font-family: 'Poppins', sans-serif;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.9);
    letter-spacing: 2px;
    text-transform: uppercase;
}

.nav-links {
    display: flex;
    gap: 2.5rem;
    list-style: none;
}

.nav-links a {
    color: #ffffff;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    position: relative;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: width 0.3s ease;
}

.nav-links a:hover {
    color: var(--primary-light);
}

.nav-links a:hover::after {
    width: 100%;
}

.nav-cta {
    background: var(--primary);
    color: #ffffff;
    padding: 0.85rem 1.75rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(196, 30, 58, 0.3);
}

.nav-cta:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(196, 30, 58, 0.4);
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: #ffffff;
    cursor: pointer;
    padding: 0.5rem;
}

.nav.scrolled .mobile-menu-btn {
    color: var(--fg);
}

/* Mobile Menu */
.mobile-menu {
    position: fixed;
    inset: 0;
    background: #ffffff;
    z-index: 3000;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
}

.mobile-menu.open {
    opacity: 1;
    pointer-events: all;
}

.mobile-menu a {
    color: var(--fg);
    text-decoration: none;
    font-size: 1.5rem;
    font-weight: 600;
    transition: color 0.3s ease;
    font-family: 'Poppins', sans-serif;
}

.mobile-menu a:hover {
    color: var(--primary);
}

.mobile-close {
    position: absolute;
    top: 2rem;
    right: 2rem;
    background: none;
    border: none;
    color: var(--fg);
    cursor: pointer;
}



/* Footer */
.footer {
    background: #1a1a1a;
    padding: 4rem 2rem 2rem;
}

.footer-container {
    max-width: 1400px;
    margin: 0 auto;
}

.footer-top {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-brand .logo-img {
    height: 60px;
    margin-bottom: 1rem;
}

.footer-brand h3 {
    font-family: 'Poppins', sans-serif;
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #ffffff;
}

.footer-brand p {
    color: #999999;
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 1rem;
}

.footer-tax {
    color: var(--accent) !important;
    font-weight: 600;
}

.footer-title {
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 1.5rem;
}

.footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-links a {
    color: #999999;
    text-decoration: none;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.footer-links a:hover {
    color: #ffffff;
    padding-left: 5px;
}

.footer-bottom {
    border-top: 1px solid #333333;
    padding-top: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-bottom p {
    color: #666666;
    font-size: 0.9rem;
}

.footer-bottom-links {
    display: flex;
    gap: 2rem;
}

.footer-bottom-links a {
    color: #666666;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.footer-bottom-links a:hover {
    color: #ffffff;
}

/* Mobile Menu */
.mobile-menu {
    position: fixed;
    inset: 0;
    background: #ffffff;
    z-index: 3000;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
}

.mobile-menu.open {
    opacity: 1;
    pointer-events: all;
}

.mobile-menu a {
    color: var(--fg);
    text-decoration: none;
    font-size: 1.5rem;
    font-weight: 600;
    transition: color 0.3s ease;
    font-family: 'Poppins', sans-serif;
}

.mobile-menu a:hover {
    color: var(--primary);
}

.mobile-close {
    position: absolute;
    top: 2rem;
    right: 2rem;
    background: none;
    border: none;
    color: var(--fg);
    cursor: pointer;
}

/* Better spacing on mobile */
@media (max-width: 768px) {
    .grid {
        gap: 32px !important;
    }
}


/* Responsive */
@media (max-width: 1200px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .focus-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .projects-grid {
        grid-template-columns: 1fr;
    }

    .activities-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .cert-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .docs-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .goals-grid {
        grid-template-columns: 1fr;
    }

    .contact-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .footer-top {
        grid-template-columns: repeat(2, 1fr);
    }
}


@media (max-width: 768px) {

    .nav-links,
    .nav-cta {
        display: none;
    }

    .mobile-menu-btn {
        display: block;
    }

    .hero {
        padding: 100px 1rem 60px;
        background-attachment: scroll;
    }

    .hero h1 {
        font-size: 2.2rem;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .stats-grid,
    .focus-grid,
    .activities-grid,
    .cert-grid,
    .docs-grid {
        grid-template-columns: 1fr;
    }

    .footer-top {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
}

/* Container */
.page-header .container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
    color: #fff;
}

/* Page Header */
.page-header {
    position: relative;
    padding: 80px 0;
    text-align: center;
    color: #fff;
    background: #969393;
}

/* Title */
.page-title {
    font-size: 38px;
    font-weight: 600;
    margin-bottom: 10px;
    color: #fff;
}

/* Breadcrumb */
.breadcrumb {
    font-size: 14px;
    opacity: 0.9;
}

.breadcrumb a {
    color: #fff;
    text-decoration: none;
    transition: 0.3s;
}

.breadcrumb a:hover {
    opacity: 0.7;
}

.breadcrumb span {
    margin: 0 6px;
}

.breadcrumb .active {
    font-weight: 500;
}

/* Responsive */
@media (max-width: 768px) {
    .page-header {
        padding: 60px 0;
    }

    .page-title {
        font-size: 28px;
    }
}



/*Grid Container Css*/

.container-grid  {
    max-width: 90%;
    margin: auto;
    padding: 40px 20px;
    /* border-bottom: 1px solid #3f3f3f; */
}

.container-grid h1 {
    text-align: center;
    margin-bottom: 30px;
    color: #333;
}

/* grid */
.container-grid  .grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, 350px);
    justify-content: center;
    gap: 20px;
    /* max-width: 350px; */

}

/* card */
.container-grid  .card {
    border: 1px solid var(--border);
    cursor: pointer;
    transition: 0.3s;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: rgba(100, 100, 111, 0.2) 0px 7px 29px 0px;
}

.container-grid  .card:hover {
    transform: translateY(-4px);
}

.container-grid .card img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    transition: 0.4s;

}

.container-grid .card:hover img {
    transform: scale(1.05);
}

.container-grid .card p {
    padding: 12px;
    font-size: 14px;
    color: #222;
    font-weight: 600;
}


.last-cont{
    display: flex;
    justify-content: space-evenly;
    margin: 0 8%;
}