@import url('https://fonts.googleapis.com/css2?family=Inter:wght@100..900&display=swap');

:root {
    --maincolor: #e0569f;
    --secondcolor: #e0569f;
    --textcolor: #4A5764;
    --white: #ffffff;
    --grey-50: #f8fafc;
    --grey-100: #e5e7eb;
    --grey-300: #9ca3af;
    --grey-500: #6b7280;
    --grey-900: #111827;
    --pink: #e0569f;
    --magenta: #e0569f;
    --pink-soft: rgba(224,86,159,0.14);
    --pink-wash: rgba(224,86,159,0.08);
    --grad-accent: linear-gradient(90deg,#e0569f,#f9a8d4);
    --radius-lg: 24px;
    --radius-sm: 16px;
    --shadow-lg: 0 20px 40px rgba(0,0,0,0.12);
    --ease: cubic-bezier(0.22,1,0.36,1);
    --font-heading: "Inter", sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    outline: none;
    border: none;
    text-decoration: none;
    text-transform: capitalize;
    transition: all .2s linear;
    font-family: "Inter", sans-serif;
}

html {
    font-size: 70%;
    overflow-x: hidden;
    scroll-behavior: smooth;
    scroll-padding-top: 6rem;
}

body {
    font-size: 1.8rem;
    line-height: 1.75;
    color: var(--textcolor);
    background: linear-gradient(180deg, #fdfefe 0%, #f7f8fc 100%);
}

body, p, li, a, span, button, label, input, textarea, select {
    font-size: inherit;
}

section, .section, .main-about, .hero-section {
    padding-block: clamp(4.5rem, 7vw, 6.5rem);
}

.container {
    width: min(1240px, calc(100% - 4rem));
    margin: 0 auto;
}

.section, .main-about, .hero-section {
    padding-inline: clamp(1.5rem, 4vw, 7rem);
}

/* ===== HEADER ===== */
header {
    border-bottom: 1px solid #e5e7eb;
    padding: 0 24px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    background: #fff;
    box-shadow: 0 12px 32px rgba(15,23,42,0.06);
}

.logo {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    width: 150px;
}

.logo img {
    width: 100%;
    max-height: 62px;
}

nav {
    flex: 1 1 auto;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 40px;
}

ul.nav-menu {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 16px;
    padding: 0;
    margin: 0;
    align-items: center;
}

ul.nav-menu li a {
    font-weight: 500;
    font-size: 1.6rem;
    padding: 10px 14px;
    border-radius: 10px;
    transition: background-color 0.3s ease, color 0.3s ease;
    display: inline-block;
    color: #1f2937;
}

ul.nav-menu li a:hover,
ul.nav-menu li a:focus-visible {
    background-color: #ede9fe;
    color: #e0569f;
    outline: none;
}

.social-icons {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    gap: 24px;
}

.social-icons a {
    display: inline-flex;
    width: 24px;
    height: 24px;
    transition: fill 0.3s ease;
}

.social-icons a:hover svg,
.social-icons a:focus-visible svg {
    fill: #e0569f;
}

.social-icons svg {
    width: 100%;
    height: 100%;
    fill: #e0569f;
    flex-shrink: 0;
}

/* ===== HERO SECTION ===== */
.hero-section {
    position: relative;
    min-height: calc(100vh - 100px);
    display: flex;
    align-items: center;
    background: linear-gradient(180deg, rgba(17,24,39,0.72), rgba(17,24,39,0.28)), url('../../images/ahc.jpeg') center/cover no-repeat;
    color: #fff;
}

.hero-inner {
    width: 100%;
    display: flex;
    align-items: center;
    padding: 6rem 0;
}

.hero-copy {
    max-width: 640px;
    z-index: 1;
}

.eyebrow {
    display: inline-block;
    text-transform: uppercase;
    letter-spacing: 0.3em;
    font-size: 1rem;
    color: rgba(255,255,255,0.85);
    margin-bottom: 1.4rem;
}

.hero-copy h1 {
    font-size: clamp(3.6rem, 5vw, 5.6rem);
    line-height: 1.02;
    margin-bottom: 1.4rem;
}

.hero-copy h2 {
    font-size: clamp(2rem, 3vw, 2.8rem);
    line-height: 1.2;
    margin-bottom: 1rem;
}

.hero-copy p {
    font-size: 1.55rem;
    max-width: 620px;
    line-height: 2.6rem;
    color: rgba(255,255,255,0.92);
}

.hero-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 2.4rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1.45rem 2.4rem;
    border-radius: 999px;
    font-size: 1.5rem;
    font-weight: 700;
    text-decoration: none;
    letter-spacing: 0.01em;
}

.btn-primary {
    background: #e0569f;
    color: #fff;
}

.btn-secondary {
    background: rgba(255,255,255,0.18);
    color: #fff;
    border: 1px solid rgba(255,255,255,0.28);
}

.btn-primary:hover,
.btn-secondary:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 40px rgba(224,86,159,0.2);
}

/* ===== SECTION HEADS ===== */
.section-head {
    max-width: 760px;
    margin: 0 auto 3rem;
    text-align: center;
}

.section-label {
    display: inline-block;
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--pink);
    letter-spacing: 0.24em;
    text-transform: uppercase;
    margin-bottom: 1rem;
}

.section-head h2 {
    font-size: clamp(2.8rem, 3vw, 4rem);
    margin: 1rem 0;
    line-height: 1.1;
}

.section-head-center {
    max-width: 760px;
    margin: 0 auto 2.5rem;
    text-align: center;
}

.section-heading {
    font-size: clamp(3.2rem, 4vw, 5.4rem);
    color: #111;
    margin-bottom: 1rem;
    line-height: 1.05;
}

.section-desc {
    font-size: 1.6rem;
    color: var(--textcolor);
    line-height: 2.45rem;
    max-width: 760px;
    margin: 0 auto;
}

/* ===== INSTITUTIONS GRID ===== */
.institution-section .container { padding: 4rem 7%; }

.institution-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(240px, 1fr));
    gap: 1.8rem;
}

.institution-card {
    display: flex;
    flex-direction: column;
    background: var(--white);
    border-radius: 28px;
    overflow: hidden;
    border: 1px solid var(--grey-100);
    box-shadow: 0 22px 50px rgba(15,23,42,0.08);
    transition: transform .3s ease, box-shadow .3s ease;
    text-decoration: none;
    color: inherit;
    height: 100%;
}

.institution-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 28px 70px rgba(15,23,42,0.14);
}

.institution-image {
    width: 100%;
    height: 250px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    flex: 0 0 auto;
}

.entity-body {
    padding: 1.6rem;
    display: flex;
    flex-direction: column;
    gap: .75rem;
    flex: 1 1 auto;
}

.entity-tag {
    font-size: 0.9rem;
    color: var(--pink);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
}

.entity-name {
    font-size: 1.9rem;
    font-weight: 700;
    color: var(--grey-900);
}

.entity-desc {
    font-size: 1.4rem;
    color: var(--grey-500);
    line-height: 2.25rem;
    flex: 1;
}

.entity-cta {
    margin-top: auto;
    font-weight: 700;
    color: var(--magenta);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 1.05rem;
}

.entity-cta svg {
    width: 14px;
    height: 14px;
}

/* ===== ABOUT US SECTION ===== */
.main-about {
    padding: 5rem 7%;
    width: 100%;
    background: linear-gradient(180deg, rgba(224,86,159,0.08), rgba(255,255,255,0.96));
    position: relative;
    overflow: hidden;
}

.main-about::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 360px;
    height: 360px;
    background: radial-gradient(circle, rgba(224,86,159,0.18) 0%, transparent 70%);
    pointer-events: none;
}

.main-about .about-heading {
    position: relative;
    z-index: 1;
    text-align: center;
    font-size: clamp(3.8rem, 4vw, 6rem);
    font-weight: 800;
    color: var(--maincolor);
    margin-bottom: 3rem;
    letter-spacing: 1px;
}

.about-grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(320px, 1.1fr) minmax(320px, 1fr);
    gap: 3rem;
    align-items: center;
}

.about-visual {
    display: flex;
    justify-content: center;
}

.about-image-card {
    width: 100%;
    max-width: 520px;
    border-radius: 32px;
    overflow: hidden;
    box-shadow: 0 24px 60px rgba(0,0,0,0.08);
    border: 1px solid rgba(224,86,159,0.14);
    background: #fff;
}

.about-image-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.image-caption {
    padding: 1.5rem 1.8rem;
    font-size: 1.3rem;
    color: var(--grey-500);
    background: #fff;
}

.about-copy {
    display: flex;
    flex-direction: column;
    gap: 1.8rem;
}

.about-subtitle {
    display: inline-block;
    font-size: 1.15rem;
    color: var(--pink);
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.about-copy h2 {
    font-size: clamp(3rem, 3.5vw, 4.4rem);
    line-height: 1.05;
    color: var(--grey-900);
    margin: 0;
}

.about-copy p {
    font-size: 1.72rem;
    color: var(--textcolor);
    line-height: 2.9rem;
    margin: 0;
}

.about-points {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px 20px;
    margin-top: 1rem;
}

.about-point {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.5rem;
    font-weight: 500;
    color: var(--grey-900);
}

.about-point .check {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    flex-shrink: 0;
    background: var(--pink-wash);
    display: flex;
    align-items: center;
    justify-content: center;
}

.about-point .check svg {
    width: 11px;
    height: 11px;
    color: var(--magenta);
}

.about-highlights {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

.about-highlight {
    background: rgba(224,86,159,0.08);
    border-radius: 22px;
    padding: 1.35rem 1.5rem;
    min-height: 120px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 0.4rem;
}

.about-highlight strong {
    font-size: 1.4rem;
    color: var(--grey-900);
}

.about-highlight span {
    font-size: 1rem;
    color: var(--grey-500);
    line-height: 1.6;
}

/* ===== LEADERSHIP / DIRECTORS ===== */
.directors {
    background: var(--white);
    position: relative;
    padding: 5rem 7%;
    border-top: 6px solid rgba(224,86,159,0.12);
    box-shadow: inset 0 1px 0 rgba(224,86,159,0.08);
    margin-bottom: 5rem;
}

.directors-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(320px, 340px));
    gap: 24px;
    align-items: start;
    justify-content: center;
    width: min(100%, 1060px);
    margin: 0 auto;
}

.director-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--grey-100);
    transition: all 0.4s var(--ease);
    text-align: center;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.director-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: var(--pink-soft);
}

.director-photo {
    width: 100%;
    aspect-ratio: 1/1;
    background: var(--grey-50);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    position: relative;
    overflow: hidden;
    border-bottom: 1px solid var(--grey-100);
    flex: 0 0 auto;
}

.director-photo span {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    background: var(--white);
}

.director-photo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    display: block;
    border-radius: 12px;
}

.director-photo::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 20%;
    right: 20%;
    height: 2px;
    background: var(--grad-accent);
    border-radius: 2px;
    opacity: 0;
    transition: all 0.4s var(--ease);
}

.director-card:hover .director-photo::after {
    opacity: 1;
    left: 10%;
    right: 10%;
}

.director-photo--placeholder {
    background: linear-gradient(135deg, rgba(224,86,159,0.08), rgba(224,86,159,0.02));
    color: var(--pink);
}

.director-body {
    padding: 24px 22px 30px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    flex: 1 1 auto;
    justify-content: flex-start;
}

.director-role {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 1.8px;
    text-transform: uppercase;
    color: var(--pink);
    margin-bottom: 10px;
}

.director-name {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--grey-900);
    margin-bottom: 10px;
}

.director-bio {
    font-size: 1.28rem;
    color: var(--grey-500);
    line-height: 2.2rem;
}

/* ===== IMPACT SECTION ===== */
.impact-section {
    background: linear-gradient(135deg, rgba(224,86,159,0.06), rgba(224,86,159,0.02));
    text-align: center;
    padding: 5rem 7%;
}

.impact-section h2 {
    font-size: clamp(2.8rem, 3.5vw, 4.2rem);
    color: var(--grey-900);
    margin-bottom: 1.5rem;
    line-height: 1.1;
}

.impact-section p {
    font-size: 1.6rem;
    color: var(--textcolor);
    line-height: 2.6rem;
    max-width: 800px;
    margin: 0 auto;
}

/* ===== FOOTER ===== */
.main-footer {
    padding: 4rem 7%;
    background: #111827;
    color: #f8fafc;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(220px, 1fr));
    gap: 2rem;
    align-items: flex-start;
    margin-bottom: 2rem;
}

.footer-brand h2 {
    font-size: 2.8rem;
    margin-bottom: 1rem;
    color: #fff;
}

.footer-brand p,
.footer-contact p {
    font-size: 1.45rem;
    line-height: 2.4rem;
    color: rgba(248,250,252,0.82);
}

.footer-contact a {
    color: rgba(248,250,252,0.82);
}

.footer-contact a:hover {
    color: #fff;
}

.footer-links h3,
.footer-contact h3 {
    font-size: 1.6rem;
    margin-bottom: 1.2rem;
    color: #fff;
}

.footer-links a {
    display: block;
    color: rgba(248,250,252,0.86);
    margin-bottom: 0.75rem;
    transition: color 0.2s ease;
}

.footer-links a:hover {
    color: #fff;
}

.footer-bottom {
    text-align: center;
    border-top: 1px solid rgba(255,255,255,0.08);
    padding-top: 1.6rem;
    color: rgba(248,250,252,0.72);
}

/* ===== CHATBOT WIDGET ===== */
#chatbot-widget {
    position: fixed;
    bottom: 32px;
    right: 32px;
    z-index: 9999;
}

#chatbot-icon {
    background: grey;
    color: #fff;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.2rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.18);
    cursor: pointer;
    transition: 0.2s;
}

#chatbot-icon:hover {
    background: #e0569f;
}

#chatbot-popup {
    display: none;
    position: absolute;
    bottom: 70px;
    right: 0;
    width: 320px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.18);
    overflow: hidden;
    animation: chatbot-pop 0.2s;
}

@keyframes chatbot-pop {
    from { transform: scale(0.8); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.chatbot-header {
    background: #e0569f;
    color: #fff;
    padding: 14px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: bold;
    font-size: 1.1rem;
}

#chatbot-close {
    cursor: pointer;
    font-size: 1.3rem;
}

.chatbot-body {
    padding: 18px 16px;
}

.chatbot-questions {
    list-style: none;
    padding: 0;
    margin: 16px 0 0 0;
}

.chatbot-questions li {
    background: #f1f1f1;
    margin-bottom: 10px;
    padding: 10px 12px;
    border-radius: 8px;
    cursor: pointer;
    transition: 0.2s;
    font-size: 1.3rem;
}

.chatbot-questions li:hover {
    background: #e3eafc;
}

#chatbot-answer {
    margin-top: 12px;
    color: #333;
    font-size: 1.3rem;
}

/* ===== CONTACT PAGE ===== */
.contact-section {
    padding: 5rem 0;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 3rem;
    align-items: start;
}

.contact-form-wrapper {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 3rem;
    box-shadow: 0 8px 32px rgba(0,0,0,0.06);
    border: 1px solid var(--grey-100);
}

.contact-form .form-group {
    margin-bottom: 1.8rem;
}

.contact-form label {
    display: block;
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--grey-900);
    margin-bottom: 0.6rem;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 1.2rem 1.4rem;
    font-size: 1.4rem;
    border: 1px solid var(--grey-100);
    border-radius: 12px;
    background: var(--grey-50);
    transition: border-color 0.2s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-color: var(--pink);
    outline: none;
    box-shadow: 0 0 0 3px var(--pink-wash);
}

.contact-info-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 3rem;
    box-shadow: 0 8px 32px rgba(0,0,0,0.06);
    border: 1px solid var(--grey-100);
}

.contact-info-card h3 {
    font-size: 2rem;
    color: var(--grey-900);
    margin-bottom: 2rem;
}

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

.info-item i {
    color: var(--pink);
    font-size: 1.6rem;
    margin-top: 0.3rem;
}

.info-item strong {
    display: block;
    font-size: 1.3rem;
    color: var(--grey-900);
    margin-bottom: 0.3rem;
}

.info-item p {
    font-size: 1.3rem;
    color: var(--grey-500);
    margin: 0;
}

.info-item a {
    color: var(--grey-500);
}

.info-item a:hover {
    color: var(--pink);
}

.alert {
    padding: 1.2rem 1.6rem;
    border-radius: 12px;
    margin-bottom: 2rem;
    font-size: 1.4rem;
}

.alert-success {
    background: #dcfce7;
    color: #166534;
    border: 1px solid #bbf7d0;
}

.alert-error {
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

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

/* ===== RESPONSIVE ===== */
@media (max-width: 1100px) {
    .institution-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 1080px) {
    .directors-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1fr; }
}

@media (max-width: 980px) {
    .about-grid { grid-template-columns: 1fr; }
    .about-highlights { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    html { font-size: 55%; }

    header {
        flex-wrap: wrap;
        height: auto;
        padding: 16px 24px;
        gap: 12px;
        justify-content: center;
    }

    nav {
        order: 3;
        width: 100%;
        margin: 0;
    }

    ul.nav-menu {
        justify-content: space-around;
        gap: 12px;
        flex-wrap: wrap;
    }

    .logo {
        order: 1;
        flex-grow: 1;
        text-align: center;
    }

    .social-icons {
        order: 2;
        width: 100%;
        justify-content: center;
        gap: 32px;
    }
}

@media (max-width: 700px) {
    .institution-grid { grid-template-columns: 1fr; }
    .directors-grid { grid-template-columns: 1fr; }
    .institution-image { height: 200px; }
}

@media (max-width: 620px) {
    .main-about { padding: 3rem 4%; }
    .about-heading { font-size: 3.8rem; }
    .about-copy p { font-size: 1.45rem; line-height: 2.4rem; }
    .hero-actions { flex-direction: column; align-items: stretch; }
    .btn { width: 100%; justify-content: center; }
}
