/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

* {
    box-sizing: border-box;
    /* Crucial: stops padding from adding to width */
}

html,
body {
    width: 100%;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    /* This is the 'emergency brake' for horizontal scrolling */
    position: relative;
}



:root {
    --primary-teal: #2A9D8F;
    --primary-dark: #264653;
    --accent-orange: #E9C46A;
    --accent-coral: #F4A261;
    --accent-sienna: #E76F51;
    --light-gray: #F4F7F6;
    --medium-gray: #E0E0E0;
    --dark-gray: #333333;
    --white: #FFFFFF;
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    --shadow-hover: 0 8px 30px rgba(0, 0, 0, 0.12);
    --transition: all 0.1s ease;
    --border-radius: 12px;
    --border-radius-sm: 8px;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Open Sans', sans-serif;
    line-height: 1.6;
    color: var(--dark-gray);
    background-color: var(--white);
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 1rem;
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
    color: var(--primary-dark);
}

h3 {
    font-size: 1.5rem;
}

p {
    margin-bottom: 1rem;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: 80px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 70px;
}

.section-subtitle {
    font-size: 1.1rem;
    color: #666;
    max-width: 700px;
    margin: 0 auto 2rem;
}

/* Button Styles */
.btn-primary,
.btn-secondary,
.btn-hero {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
    border: none;
    font-family: 'Montserrat', sans-serif;
}

.btn-primary {
    background-color: var(--primary-teal);
    color: var(--white);
}

.btn-primary:hover {
    background-color: #23857a;
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

.btn-secondary {
    background-color: transparent;
    color: var(--primary-teal);
    border: 2px solid var(--primary-teal);
}

.btn-secondary:hover {
    background-color: rgba(42, 157, 143, 0.1);
    transform: translateY(-2px);
}

.btn-hero {
    background-color: var(--accent-orange);
    color: var(--primary-dark);
    font-size: 1.1rem;
    padding: 15px 35px;
    margin-top: 20px;
}

.btn-hero:hover {
    background-color: #e0b256;
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(233, 196, 106, 0.3);
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-img {
    height: 40px;
    width: auto;
}

.logo-text {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--primary-teal);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-menu li a {
    font-weight: 500;
    color: var(--primary-dark);
    position: relative;
    padding: 5px 0;
}

.nav-menu li a:hover,
.nav-menu li a.active {
    color: var(--primary-teal);
}

.nav-menu li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-teal);
    transition: width 0.3s ease;
}

.nav-menu li a:hover::after,
.nav-menu li a.active::after {
    width: 100%;
}

.cta-nav {
    color: white;
    padding: 8px 20px;
    border-radius: 50px;
}



.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--primary-dark);
    cursor: pointer;
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 80px;
    background: linear-gradient(135deg, rgba(38, 70, 83, 0.9) 0%, rgba(42, 157, 143, 0.8) 100%);
    color: var(--white);
    overflow: hidden;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    padding: 0 20px;
}

.hero-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--white);
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.hero-subtitle {
    font-size: 1.3rem;
    opacity: 0.9;
    max-width: 700px;
    margin: 0 auto 30px;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('https://images.unsplash.com/photo-1559757175-0eb30cd8c063?ixlib=rb-4.0.3&auto=format&fit=crop&w=1600&q=80');
    background-size: cover;
    background-position: center;
    opacity: 0.2;
    z-index: 1;
}


/* Problem Section */
.problem {
    background-color: var(--light-gray);
}

.split-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 40px;
}

.stat-card {
    background-color: var(--white);
    padding: 25px 15px;
    border-radius: var(--border-radius);
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-teal);
    margin-bottom: 5px;
}

.stat-label {
    font-size: 0.9rem;
    color: #666;
}

.flip-card-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.flip-card {
    perspective: 1000px;
    height: 250px;
}

.flip-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    text-align: center;
    transition: transform 0.8s;
    transform-style: preserve-3d;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    cursor: pointer;
}

.flip-card:hover .flip-card-inner {
    transform: rotateY(180deg);
}

.flip-card-front,
.flip-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    border-radius: var(--border-radius);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.flip-card-front {
    background-color: var(--white);
    color: var(--primary-dark);
}

.flip-card-front img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: var(--border-radius-sm);
    margin-bottom: 15px;
}

.flip-card-back {
    background-color: var(--primary-teal);
    color: white;
    transform: rotateY(180deg);
}

/* Challenges Section */
.challenges {
    background-color: var(--white);
}

.ponseti-steps {
    max-width: 600px;
    margin: 0 auto 50px;
    display: flex;
    flex-direction: row;
}

.step-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.step {
    display: flex;
    align-items: flex-start;
    margin-bottom: 25px;
    padding: 15px;
    border-radius: var(--border-radius);
    background-color: var(--light-gray);
    transition: var(--transition);
    margin: 20px;
}

.step:hover {
    background-color: #e8f3f2;
    transform: translateX(5px);
}

.step-number {
    margin-bottom: 15px;
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    background-color: var(--primary-teal);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}


#h4-step {
    margin-bottom: 1px;
    color: var(--primary-dark);
}

.challenges-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-bottom: 40px;
}

.challenge-card {
    background-color: var(--light-gray);
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.challenge-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.patient-challenges h3 {
    color: var(--accent-sienna);
}

.doctor-challenges h3 {
    color: var(--primary-teal);
}

.challenge-card h3 {
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.challenge-card ul {
    list-style: none;
}

.challenge-card li {
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.critical-stat {
    text-align: center;
    padding: 30px;
    background: linear-gradient(135deg, var(--primary-teal) 0%, var(--primary-dark) 100%);
    color: white;
    border-radius: var(--border-radius);
    max-width: 500px;
    margin: 0 auto;
}

.critical-number {
    font-size: 4rem;
    font-weight: 700;
    margin-bottom: 10px;
    transition: 0.3s ease;
    color: #9acdc0;

}

.critical-number:hover {
    font-size: 5rem;
    font-weight: 900;
    color: #ffffff;
    text-shadow: #333333;

}

/* Innovation Section */
.innovation {
    background-color: var(--light-gray);
}

.innovation-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.orthosis-visual {
    position: relative;
    background-color: var(--white);
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

#orthosisImage {
    position: relative;
    width: 100%;
}

#mainOrthosisImg {
    width: 100%;
    height: auto;
    border-radius: var(--border-radius-sm);
}

.hotspot {
    position: absolute;
    transform: translate(-50%, -50%);
    cursor: pointer;
    z-index: 10;
}

.hotspot-dot {
    width: 20px;
    height: 20px;
    background-color: var(--accent-orange);
    border-radius: 50%;
    border: 3px solid white;
    box-shadow: 0 0 0 2px var(--accent-orange);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(233, 196, 106, 0.7);
    }

    70% {
        transform: scale(1.1);
        box-shadow: 0 0 0 10px rgba(233, 196, 106, 0);
    }

    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(233, 196, 106, 0);
    }
}

.value-prop {
    font-size: 1.2rem;
    font-weight: 500;
    color: var(--primary-dark);
    margin-bottom: 30px;
    padding: 15px;
    background-color: rgba(42, 157, 143, 0.1);
    border-radius: var(--border-radius-sm);
    border-left: 4px solid var(--primary-teal);
}

/* .features-list {
    margin-bottom: 30px;
}

.feature {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}

.feature i {
    color: var(--primary-teal);
} */

.innovation-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    margin-top: 50px;
}

/* Impact Section */
.impact {
    background-color: var(--white);
}

.impact-metrics {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
}

.metric-card {
    text-align: center;
    padding: 30px 20px;
    background-color: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.metric-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
}

.metric-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--primary-teal) 0%, var(--accent-coral) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    color: white;
    font-size: 1.8rem;
}

.metric-title {
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: var(--primary-dark);
}

/* Testimonials */
.testimonials {
    background-color: var(--light-gray);
}

.testimonial-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.testimonial-card {
    background-color: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    overflow: hidden;
    transition: var(--transition);
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.testimonial-content {
    padding: 30px;
}

.testimonial-text {
    font-style: italic;
    margin-bottom: 25px;
    position: relative;
    padding-left: 20px;
}

.testimonial-text::before {
    content: '"';
    position: absolute;
    left: 0;
    top: -10px;
    font-size: 3rem;
    color: var(--primary-teal);
    opacity: 0.3;
    font-family: Georgia, serif;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 15px;
}

.testimonial-author img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    transition: transform 0.3s ease-out;

}

.testimonial-author img:hover {
    box-shadow: 5px 5px 4px 5px rgba(0, 0, 0, 0.12);
    ;
    border-color: var(--accent-orange);
    transform: translateY(-25px) translateX(25px) scale(4);
}

.author-info h4 {
    margin-bottom: 5px;
    color: var(--primary-dark);
}

.author-info p {
    margin: 0;
    font-size: 0.9rem;
    color: #666;
}

/* Supporters */
.supporter-logos {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 40px;
}

.logo-item {
    height: 60px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    filter: grayscale(100%);
    opacity: 0.7;
    transition: var(--transition);
    font-size: 0.6rem;
    font-family: 'Open Sans', sans-serif;
}

.logo-item:hover {
    filter: grayscale(0%);
    opacity: 1;
    transform: scale(1.05);
}

.logo-item img {
    max-height: 100%;
    max-width: 150px;
    object-fit: contain;
}

/* Footer */
.footer {
    background-color: var(--primary-dark);
    color: white;
    padding: 60px 0 30px;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1.5fr;
    gap: 50px;
    margin-bottom: 40px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
}

.footer-logo img {
    height: 40px;
}

.footer-logo span {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 1.2rem;
}

.footer-description {
    opacity: 0.8;
    line-height: 1.7;
}

.footer-section h4 {
    color: white;
    margin-bottom: 20px;
    font-size: 1.2rem;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    opacity: 0.8;
}

.footer-links a:hover {
    opacity: 1;
    color: var(--accent-orange);
}

.contact-info p {
    margin-bottom: 15px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    opacity: 0.8;
}

.contact-info i {
    margin-top: 3px;
    color: var(--accent-orange);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    flex-wrap: wrap;
    gap: 20px;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.social-links a:hover {
    background-color: var(--primary-teal);
    transform: translateY(-3px);
}

/* Responsive Design */
@media (max-width: 992px) {
    h1 {
        font-size: 2.2rem;
    }

    h2 {
        font-size: 1.8rem;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .split-section,
    .innovation-content,
    .impact-metrics,
    .testimonial-grid,
    .footer-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .challenges-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .section {
        padding: 60px 0;
    }

    .nav-menu {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        flex-direction: column;
        background-color: white;
        padding: 20px;
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
        transition: left 0.3s ease;
        z-index: 999;
    }

    .nav-menu.active {
        left: 0;
    }

    .menu-toggle {
        display: block;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .flip-card-container {
        grid-template-columns: 1fr;
    }

    .impact-metrics {
        grid-template-columns: repeat(2, 1fr);
    }

    .supporter-logos {
        gap: 20px;
    }

    .logo-item {
        height: 50px;
        width: 120px;
    }
}

@media (max-width: 576px) {
    h1 {
        font-size: 1.8rem;
    }

    h2 {
        font-size: 1.5rem;
    }

    .hero-title {
        font-size: 1.8rem;
    }

    .stats-grid,
    .impact-metrics {
        grid-template-columns: 1fr;
    }

    .critical-number {
        font-size: 3rem;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
}

/* Animation for floating blobs */
@keyframes float {

    0%,
    100% {
        transform: translateY(0) rotate(0deg);
    }

    50% {
        transform: translateY(-20px) rotate(5deg);
    }
}

.floating-blob {
    position: absolute;
    opacity: 0.1;
    z-index: -1;
    animation: float 15s ease-in-out infinite;
}

.blob-1 {
    top: 10%;
    left: 5%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, var(--primary-teal) 0%, transparent 70%);
    border-radius: 50%;
    animation-delay: 0s;
}

.blob-2 {
    bottom: 10%;
    right: 5%;
    width: 250px;
    height: 250px;
    background: radial-gradient(circle, var(--accent-coral) 0%, transparent 70%);
    border-radius: 40% 60% 60% 40%;
    animation-delay: 5s;
}

.blob-3 {
    top: 50%;
    left: 10%;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, var(--accent-orange) 0%, transparent 70%);
    border-radius: 30% 70% 70% 30%;
    animation-delay: 10s;
}



/* ============================================
   TECHNOLOGIES PAGE STYLES
   ============================================ */

.tech-hero {
    background: linear-gradient(135deg, rgba(233, 196, 106, 0.9) 0%, rgba(244, 162, 97, 0.8) 100%);
    color: var(--primary-dark);
    min-height: 60vh;
    display: flex;
    align-items: center;
    padding-top: 100px;
    text-align: center;
}

.tech-hero .hero-title {
    color: var(--primary-dark);
    text-shadow: none;
}

.tech-hero .hero-subtitle {
    color: var(--primary-dark);
    opacity: 0.9;
}

.tech-section {
    padding: 100px 0;
}

.tech-section.alt {
    background-color: var(--light-gray);
}

.tech-header {
    text-align: center;
    margin-bottom: 60px;
}

.tech-header h2 {
    font-size: 2.2rem;
    margin-bottom: 15px;
    color: var(--primary-dark);
}

.tech-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    margin-bottom: 150px;
}

.tech-content.reverse {
    direction: rtl;
}

.tech-content.reverse>* {
    direction: ltr;
}

.tech-visual {
    position: relative;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.tech-visual:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
}

.tech-visual img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.tech-visual:hover img {
    transform: scale(1.05);
}

.tech-visual::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 50%;
    height: 100%;
    background: linear-gradient(to bottom, transparent 60%, rgba(0, 0, 0, 0.7));
    z-index: 1;
}

.tech-details {
    padding: 20px;
}

.tech-details h3 {
    color: var(--primary-teal);
    margin-bottom: 20px;
    font-size: 1.8rem;
}

.tech-details ul {
    list-style: none;
    margin-bottom: 30px;
}

.tech-details li {
    margin-bottom: 15px;
    padding-left: 30px;
    position: relative;
    line-height: 1.6;
}

.tech-details li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--primary-teal);
    font-weight: bold;
    font-size: 1.2rem;
}

.patent-info {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 15px;
    background-color: rgba(233, 196, 106, 0.1);
    border-radius: var(--border-radius-sm);
    border-left: 4px solid var(--accent-orange);
    margin-top: 30px;
}

.patent-info i {
    color: var(--accent-orange);
    font-size: 1.5rem;
}

.patent-info span {
    font-weight: 500;
    color: var(--primary-dark);
}


/* =========================================================================tech cards down============================================================================================= */
/* Technology Cards Grid */
/* .tech-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.tech-card {
    background: var(--white);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.tech-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
}

.tech-card-img {
    height: 250px;
    overflow: hidden;
}

.tech-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.tech-card:hover .tech-card-img img {
    transform: scale(1.1);
}

.tech-card-content {
    padding: 30px;
}

.tech-card-content h3 {
    color: var(--primary-dark);
    margin-bottom: 15px;
    font-size: 1.5rem;
}

.tech-card-content p {
    color: #666;
    margin-bottom: 20px;
}

.tech-card-features {
    list-style: none;
    margin-bottom: 25px;
}

.tech-card-features li {
    margin-bottom: 10px;
    padding-left: 25px;
    position: relative;
}

.tech-card-features li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--primary-teal);
    font-size: 1.5rem;
} */
/* =========================================================================tech cards up============================================================================================= */


/* ============================================
   AFO FABRICATION PROCESS STYLES
   ============================================ */

.afo-process-section {
    padding: 60px 0;
    background-color: var(--light-gray);
    margin-top: 40px;
}

.step-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: var(--border-radius);
    transition: transform 0.4s ease;
    z-index: 4;
}

.step-icon img:hover {
    box-shadow: 5px 5px 4px 5px rgba(0, 0, 0, 0.12);
    ;
    border-color: var(--accent-orange);
    transform: translateY(-25px) scale(2.3);
}

.afo-flowchart {
    max-width: 1200px;
    margin: 0 auto;
    padding: 30px;
}

.flowchart-container {
    position: relative;
    background-color: var(--white);
    padding: 40px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

/* Process Title */
.process-title {
    text-align: center;
    margin-bottom: 50px;
}

.title-box {
    display: inline-block;
    padding: 20px 40px;
    background: linear-gradient(135deg, var(--primary-teal) 0%, var(--primary-dark) 100%);
    color: white;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

.title-box h3 {
    margin: 0;
    font-size: 1.8rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.title-box i {
    font-size: 2rem;
}

/* Process Rows */
.process-row {
    display: flex;
    justify-content: space-between;
    position: relative;
    margin-bottom: 30px;
}

.top-row {
    margin-bottom: 60px;
}

.bottom-row {
    flex-direction: row-reverse;
}

/* Process Steps */
.process-step {
    flex: 1;
    display: flex;
    align-items: center;
    margin: 0 15px;
    position: relative;
}

.step-box {
    background-color: var(--white);
    padding: 25px 20px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    border: 2px solid var(--primary-teal);
    flex: 1;
    transition: var(--transition);
    position: relative;
    z-index: 2;
}

.step-box:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
    border-color: var(--accent-orange);
}

.step-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    color: white;
    font-size: 1.5rem;
}

.step-content {
    text-align: center;
}

.step-content h4 {
    color: var(--primary-dark);
    margin-bottom: 10px;
    font-size: 1.1rem;
    line-height: 1.4;
    min-height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.step-content p {
    color: #666;
    font-size: 0.9rem;
    line-height: 1.5;
    margin: 0;
}

/* Step Arrows */
.step-arrow {
    position: absolute;
    right: -30px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1;
}

.process-step:last-child .step-arrow {
    display: none;
}

.top-row .step-arrow {
    right: -30px;
}

.bottom-row .step-arrow {
    left: -30px;
    right: auto;
}

.step-arrow i {
    font-size: 2rem;
    color: var(--primary-teal);
    background-color: white;
    padding: 10px;
    border-radius: 50%;
    box-shadow: var(--shadow);
}

/* Connector Line */
.connector-line {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.vertical-line {
    width: 4px;
    height: 150px;
    background: linear-gradient(to bottom, var(--primary-teal) 0%, var(--accent-coral) 100%);
    border-radius: 2px;
    z-index: 3;
    margin-top: 200px;

}

/* Process Image */
.process-image {
    margin-top: 60px;
    padding: 30px;
    background-color: var(--light-gray);
    border-radius: var(--border-radius);
}

.image-container {
    position: relative;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.afo-process-img {
    width: 100%;
    height: 500px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.image-container:hover .afo-process-img {
    transform: scale(1.02);
}

.image-caption {
    padding: 20px;
    background-color: rgba(0, 0, 0, 0.8);
    color: white;
    text-align: center;
    font-style: italic;
}

/* Step Number Indicators */
.step-box::before {
    content: '';
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    width: 24px;
    height: 24px;
    background-color: var(--accent-orange);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-size: 0.8rem;
    z-index: 3;
}

/* Add step numbers */
.process-step:nth-child(1) .step-box::before {
    content: '1';
}

.process-step:nth-child(2) .step-box::before {
    content: '2';
}

.process-step:nth-child(3) .step-box::before {
    content: '3';
}

.bottom-row .process-step:nth-child(1) .step-box::before {
    content: '4';
}

.bottom-row .process-step:nth-child(2) .step-box::before {
    content: '5';
}

.bottom-row .process-step:nth-child(3) .step-box::before {
    content: '6';
}

.bottom-row .process-step:nth-child(4) .step-box::before {
    content: '7';
}

/* Hover effects for steps */
.step-box:hover::before {
    background-color: var(--accent-sienna);
    transform: translateX(-50%) scale(1.2);
}

/* ============================================
   RESPONSIVE STYLES FOR AFO PROCESS
   ============================================ */

@media (max-width: 992px) {
    .process-row {
        flex-direction: column;
        align-items: center;
    }

    .process-step {
        width: 100%;
        max-width: 500px;
        margin: 0 0 40px 0;
    }

    .top-row,
    .bottom-row {
        flex-direction: column;
        margin-bottom: 20px;
    }

    .step-arrow {
        position: absolute;
        bottom: -30px;
        top: auto;
        left: 50% !important;
        right: auto !important;
        transform: translateX(-50%) rotate(90deg);
    }

    .connector-line {
        display: none;
    }

    .step-content h4 {
        min-height: auto;
        margin-bottom: 15px;
    }

    .afo-process-img {
        height: 400px;
    }
}

@media (max-width: 768px) {
    .flowchart-container {
        padding: 20px;
    }

    .title-box {
        padding: 15px 25px;
    }

    .title-box h3 {
        font-size: 1.5rem;
    }

    .step-box {
        padding: 20px 15px;
    }

    .step-content h4 {
        font-size: 1rem;
    }

    .afo-process-img {
        height: 300px;
    }

    .process-image {
        padding: 15px;
    }
}

@media (max-width: 576px) {
    .afo-flowchart {
        padding: 15px;
    }

    .process-step {
        margin-bottom: 50px;
    }

    .step-box::before {
        top: -15px;
        width: 30px;
        height: 30px;
        font-size: 0.9rem;
    }

    .step-arrow i {
        font-size: 1.5rem;
        padding: 8px;
    }

    .afo-process-img {
        height: 250px;
    }

    .step-content h4 {
        font-size: 0.95rem;
    }
}

/* Animation for flowchart */
@keyframes stepEntrance {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.process-step[data-aos] {
    animation: stepEntrance 0.6s ease forwards;
}

.process-step[data-aos="fade-right"] {
    animation-delay: calc(var(--delay, 0) * 100ms);
}

.process-step[data-aos="fade-left"] {
    animation-delay: calc(var(--delay, 0) * 100ms);
}

/* Arrows animation */
@keyframes arrowPulse {

    0%,
    100% {
        transform: translateY(-50%) scale(1);
    }

    50% {
        transform: translateY(-50%) scale(1.1);
    }
}

.step-arrow i {
    animation: arrowPulse 2s infinite;
}

/* Step box hover glow effect */
.step-box:hover {
    box-shadow: 0 10px 30px rgba(42, 157, 143, 0.2);
}

/* Responsive adjustments for bottom row arrows */
@media (max-width: 992px) {
    .step-arrow i {
        animation: none;
        transform: rotate(90deg);
    }

    .bottom-row .step-arrow i {
        transform: rotate(90deg);
    }
}


/* Video Container */
.video-container {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%;
    /* 16:9 Aspect Ratio */
    height: 0;
    margin: 30px 0;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* ============================================
   TEAM PAGE STYLES
   ============================================ */

.about-hero {
    background: linear-gradient(135deg, rgba(42, 157, 143, 0.9) 0%, rgba(38, 70, 83, 0.8) 100%);
    color: var(--white);
    min-height: 50vh;
    display: flex;
    align-items: center;
    padding-top: 100px;
    text-align: center;
}

.story {
    background-color: var(--white);
}

.story-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.story-text {
    font-size: 1.1rem;
    line-height: 1.8;
}

.story-text p {
    margin-bottom: 25px;
    color: #555;
}

.story-image {
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.story-image img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.5s ease;
}

.story-image:hover img {
    transform: scale(1.05);
}

/* Team Sections */
.team,
.extended-team,
.alumni {
    background-color: var(--light-gray);
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.team-card {
    background: var(--white);
    border-radius: var(--border-radius);
    overflow: hidden;

    box-shadow: var(--shadow);
    transition: var(--transition);
    text-align: center;
}

.team-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
}

.team-photo {
    height: 400px;
    overflow: hidden;
    position: relative;
}

.team-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

#hphoto img{
    object-fit: fill;
}

.team-card:hover .team-photo img {
    transform: scale(1.1);
}

.team-photo::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, transparent 60%, rgba(0, 0, 0, 0.3));
}

.team-info {
    padding: 30px 20px;
}

.team-info h3 {
    color: var(--primary-dark);
    margin-bottom: 10px;
    font-size: 1.5rem;
}

.team-role {
    color: var(--primary-teal);
    font-weight: 600;
    margin-bottom: 15px;
    font-size: 1.1rem;
}

.team-bio {
    color: #666;
    line-height: 1.6;
    font-size: 0.95rem;
}

/* Extended Team Grid */
.extended-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 25px;
}

.extended-card {
    background: var(--white);
    border-radius: var(--border-radius);
    padding: 25px 15px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.extended-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.extended-photo {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    overflow: hidden;
    margin: 0 auto 15px;
    border: 4px solid var(--primary-teal);
}

.extended-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.extended-card h4 {
    color: var(--primary-dark);
    margin-bottom: 5px;
    font-size: 1.1rem;
}

.extended-card p {
    color: #666;
    font-size: 0.9rem;
}

/* Alumni Grid */
.alumni-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 20px;
}

.alumni-card {
    background: var(--white);
    border-radius: var(--border-radius);
    padding: 20px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.alumni-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
    background-color: rgba(42, 157, 143, 0.05);
}

.alumni-photo {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    overflow: hidden;
    margin: 0 auto 15px;
    border: 3px solid var(--primary-teal);
}

.alumni-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.alumni-card h4 {
    color: var(--primary-dark);
    margin-bottom: 5px;
    font-size: 1rem;
}

.alumni-year {
    color: var(--primary-teal);
    font-size: 0.85rem;
    font-weight: 500;
}

/* Team Timeline */
.timeline {
    position: relative;
    max-width: 800px;
    margin: 50px auto;
}

.timeline::after {
    content: '';
    position: absolute;
    width: 4px;
    background-color: var(--primary-teal);
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -2px;
}

.timeline-item {
    padding: 10px 40px;
    position: relative;
    width: 50%;
    box-sizing: border-box;
}

.timeline-item:nth-child(odd) {
    left: 0;
}

.timeline-item:nth-child(even) {
    left: 50%;
}

.timeline-content {
    padding: 20px;
    background-color: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    position: relative;
}

.timeline-item:nth-child(odd) .timeline-content::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    right: -10px;
    background-color: var(--white);
    top: 20px;
    border-radius: 50%;
    z-index: 1;
    border: 4px solid var(--primary-teal);
}

.timeline-item:nth-child(even) .timeline-content::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    left: -10px;
    background-color: var(--white);
    top: 20px;
    border-radius: 50%;
    z-index: 1;
    border: 4px solid var(--primary-teal);
}

/* ============================================
   MEDICAL PARTNERS SECTION
   ============================================ */

.medical-partners {
    background-color: var(--white);
    /* Or use var(--light-gray) if you want it to stand out against white neighbors */
}

.subsection-title {
    text-align: center;
    color: var(--primary-dark);
    margin-bottom: 30px;
    font-size: 1.4rem;
    position: relative;
    display: inline-block;
    left: 50%;
    transform: translateX(-50%);
}

.subsection-title::after {
    content: '';
    display: block;
    width: 40px;
    height: 3px;
    background-color: var(--primary-teal);
    margin: 10px auto 0;
    border-radius: 2px;
}

/* Partner Logos Grid (Hospitals) */
.partners-logos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    align-items: center;
    justify-items: center;
    margin-bottom: 40px;
}

.partner-logo-item {
    background: white;
    padding: 20px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    transition: var(--transition);
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    border: 1px solid #eee;
}

.partner-logo-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
    border-color: var(--primary-teal);
}

.partner-logo-item img {
    max-width: 100%;
    height: auto;
    filter: grayscale(100%);
    opacity: 0.8;
    transition: var(--transition);
}

.partner-logo-item:hover img {
    filter: grayscale(0%);
    opacity: 1;
}

/* Medical Doctors Grid */
.medical-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
}

.medical-card {
    display: flex;
    align-items: flex-start;
    /* Aligns icon and text to top */
    gap: 20px;
    background: white;
    padding: 25px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    transition: var(--transition);
    border-left: 4px solid var(--primary-teal);
}

.medical-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.medical-icon {
    flex-shrink: 0;
    width: 50px;
    height: 50px;
    background-color: rgba(42, 157, 143, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-teal);
    font-size: 1.5rem;
}

.medical-info h4 {
    margin: 0 0 5px 0;
    color: var(--primary-dark);
    font-size: 1.1rem;
}

.med-role {
    color: var(--accent-sienna);
    /* Highlights the specialty */
    font-weight: 500;
    font-size: 0.9rem;
    margin-bottom: 5px;
}

.med-hospital {
    color: #666;
    font-size: 0.85rem;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.med-hospital i {
    color: var(--primary-teal);
}

/* Responsive Tweaks */
@media (max-width: 768px) {
    .medical-card {
        flex-direction: column;
        /* Stack icon on top of text for mobile */
        align-items: center;
        text-align: center;
        border-left: none;
        border-top: 4px solid var(--primary-teal);
    }

    .med-hospital {
        justify-content: center;
    }
}

/* ============================================
   CONTACT PAGE STYLES
   ============================================ */

.contact-hero {
    background: linear-gradient(135deg, rgba(231, 111, 81, 0.9) 0%, rgba(244, 162, 97, 0.8) 100%);
    color: var(--white);
    min-height: 40vh;
    display: flex;
    align-items: center;
    padding-top: 100px;
    text-align: center;
}

.contact-hero .hero-title {
    color: var(--white);
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.contact-hero .hero-subtitle {
    color: var(--white);
    opacity: 0.9;
}

.contact {
    background-color: var(--light-gray);
    padding: 80px 0;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    margin-bottom: 60px;
}

.contact-info h2,
.contact-form h2 {
    color: var(--primary-dark);
    margin-bottom: 30px;
    font-size: 2rem;
}

/* Contact Information Styles */
.contact-detail {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 30px;
    padding: 20px;
    background-color: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.contact-detail:hover {
    transform: translateX(10px);
    box-shadow: var(--shadow-hover);
}

.contact-detail i {
    color: var(--primary-teal);
    font-size: 1.5rem;
    min-width: 40px;
    text-align: center;
    padding-top: 3px;
    transition: var(--transition);
}

.contact-detail:hover i {
    color: var(--accent-orange);
    transform: scale(1.2);
}

.contact-detail-content h4 {
    color: var(--primary-dark);
    margin-bottom: 8px;
    font-size: 1.2rem;
}

.contact-detail-content p {
    color: #666;
    line-height: 1.6;
    margin: 0;
}

/* Social Contact */
.social-contact {
    margin-top: 40px;
    padding: 30px;
    background-color: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

.social-contact h4 {
    margin-bottom: 20px;
    color: var(--primary-dark);
}

.social-icons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.social-icons a {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: var(--primary-teal);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: var(--transition);
}

.social-icons a:hover {
    background-color: var(--primary-dark);
    transform: translateY(-3px) scale(1.1);
}

.social-icons a:nth-child(1):hover {
    background-color: #0077b5;
}

/* LinkedIn */
.social-icons a:nth-child(2):hover {
    background-color: #1da1f2;
}

/* Twitter */
.social-icons a:nth-child(3):hover {
    background-color: #4267B2;
}

/* Facebook */
.social-icons a:nth-child(4):hover {
    background-color: #FF0000;
}

/* YouTube */

/* Contact Form Styles
.contact-form {
    background-color: var(--white);
    padding: 40px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.contact-form:hover {
    box-shadow: var(--shadow-hover);
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--primary-dark);
    font-weight: 500;
    font-size: 0.95rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid var(--medium-gray);
    border-radius: var(--border-radius-sm);
    font-family: 'Open Sans', sans-serif;
    font-size: 1rem;
    transition: var(--transition);
    background-color: var(--light-gray);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-teal);
    background-color: white;
    box-shadow: 0 0 0 3px rgba(42, 157, 143, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 150px;
    line-height: 1.5;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #999;
} */

/* Submit Button */
.contact-form .btn-primary {
    width: 100%;
    padding: 15px;
    font-size: 1.1rem;
    font-weight: 600;
    margin-top: 10px;
}

/* Map Container */
.map-container {
    background-color: var(--white);
    padding: 40px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    margin-top: 30px;
}

.map-container h2 {
    text-align: center;
    margin-bottom: 30px;
    color: var(--primary-dark);
    font-size: 2rem;
}

.map-wrapper {
    border-radius: var(--border-radius-sm);
    overflow: hidden;
    box-shadow: var(--shadow);
    position: relative;
}

.map-wrapper iframe {
    width: 100%;
    height: 400px;
    border: none;
    display: block;
}

.map-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, transparent 70%, rgba(42, 157, 143, 0.1));
    pointer-events: none;
    border-radius: var(--border-radius-sm);
}

.map-address {
    text-align: center;
    margin-top: 20px;
    padding: 15px;
    background-color: rgba(42, 157, 143, 0.05);
    border-radius: var(--border-radius-sm);
}

.map-address p {
    margin: 5px 0;
    color: #666;
}

.map-address i {
    color: var(--primary-teal);
    margin-right: 8px;
}

/* contact headiing---------------- */
.contact-h2 {
    margin: 20px;
    margin-top: 80px;
}



/* Success Message */
.success-message {
    background-color: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
    padding: 30px;
    border-radius: var(--border-radius);
    text-align: center;
    margin-top: 20px;
    animation: fadeIn 0.5s ease;
    display: none;
}

.success-message.show {
    display: block;
}

.success-message i {
    font-size: 3rem;
    color: #28a745;
    margin-bottom: 15px;
    display: block;
}

.success-message h3 {
    color: #155724;
    margin-bottom: 10px;
}

.success-message p {
    color: #155724;
    margin: 0;
    opacity: 0.9;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Loading State */
.btn-primary.loading {
    position: relative;
    color: transparent;
}

.btn-primary.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* Error Message */
.error-message {
    color: var(--accent-sienna);
    font-size: 0.875rem;
    margin-top: 5px;
    display: none;
}

.form-group.error .error-message {
    display: block;
}

.form-group.error input,
.form-group.error textarea {
    border-color: var(--accent-sienna);
}

/* Form Validation Styles */
.form-group input:invalid:focus,
.form-group textarea:invalid:focus {
    border-color: var(--accent-sienna);
}

/* Contact Hours */
.contact-hours {
    margin-top: 30px;
    padding: 20px;
    background-color: rgba(233, 196, 106, 0.1);
    border-radius: var(--border-radius-sm);
    border-left: 4px solid var(--accent-orange);
}

.contact-hours h5 {
    color: var(--primary-dark);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.contact-hours p {
    color: #666;
    margin: 5px 0;
    font-size: 0.95rem;
}

/* ============================================
   RESPONSIVE STYLES FOR CONTACT PAGE
   ============================================ */

@media (max-width: 992px) {
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .contact-info h2,
    .contact-form h2 {
        font-size: 1.8rem;
    }
}

@media (max-width: 768px) {
    .contact {
        padding: 60px 0;
    }

    .contact-form {
        padding: 30px 20px;
    }

    .contact-detail {
        padding: 15px;
    }

    .social-contact {
        padding: 20px;
    }

    .social-icons {
        justify-content: center;
    }

    .social-icons a {
        width: 45px;
        height: 45px;
        font-size: 1.1rem;
    }

    .map-container {
        padding: 30px 20px;
    }

    .map-wrapper iframe {
        height: 300px;
    }
}

@media (max-width: 576px) {
    .contact-hero .hero-title {
        font-size: 2rem;
    }

    .contact-info h2,
    .contact-form h2 {
        font-size: 1.6rem;
        text-align: center;
    }

    .contact-detail {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }

    .contact-detail i {
        font-size: 2rem;
    }

    .social-icons {
        justify-content: center;
    }

    .form-group input,
    .form-group textarea {
        padding: 12px 15px;
    }

    .map-wrapper iframe {
        height: 250px;
    }
}

/* Contact Page Animation */
@keyframes contactCardEntrance {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.95);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.contact-detail,
.contact-form,
.map-container {
    animation: contactCardEntrance 0.6s ease forwards;
    opacity: 0;
}

.contact-detail:nth-child(1) {
    animation-delay: 0.1s;
}

.contact-detail:nth-child(2) {
    animation-delay: 0.2s;
}

.contact-detail:nth-child(3) {
    animation-delay: 0.3s;
}

.social-contact {
    animation-delay: 0.4s;
}

.contact-form {
    animation-delay: 0.2s;
}

.map-container {
    animation-delay: 0.3s;
}

/* Hover effect for form groups */
.form-group input:hover,
.form-group textarea:hover {
    border-color: var(--primary-teal);
    background-color: white;
}

/* Focus effect for labels */
.form-group label:has(+ input:focus),
.form-group label:has(+ textarea:focus) {
    color: var(--primary-teal);
}

/* Required field indicator */
.form-group label.required::after {
    content: ' *';
    color: var(--accent-sienna);
}

/* Form submission animation */
@keyframes formSuccess {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.02);
    }

    100% {
        transform: scale(1);
    }
}

.contact-form.submitted {
    animation: formSuccess 0.5s ease;
}

/* Map hover effect */
.map-wrapper {
    transition: var(--transition);
}

.map-wrapper:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

/* Contact detail icon animation */
.contact-detail i {
    transition: transform 0.3s ease, color 0.3s ease;
}

.contact-detail:hover i {
    animation: iconBounce 0.6s ease;
}

@keyframes iconBounce {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.3);
    }
}

/* Form field focus animations */
.form-group input:focus,
.form-group textarea:focus {
    animation: fieldFocus 0.3s ease;
}

@keyframes fieldFocus {
    from {
        box-shadow: 0 0 0 0 rgba(42, 157, 143, 0.1);
    }

    to {
        box-shadow: 0 0 0 3px rgba(42, 157, 143, 0.1);
    }
}

/* ============================================
   RESPONSIVE STYLES FOR NEW SECTIONS
   ============================================ */

@media (max-width: 992px) {

    .tech-content,
    .story-content,
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .tech-content.reverse {
        direction: ltr;
    }

    .tech-cards {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    }

    .team-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }

    .extended-grid {
        grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    }

    .alumni-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    }

    .timeline::after {
        left: 31px;
    }

    .timeline-item {
        width: 100%;
        padding-left: 70px;
        padding-right: 25px;
    }

    .timeline-item:nth-child(even) {
        left: 0;
    }

    .timeline-item:nth-child(odd) .timeline-content::after,
    .timeline-item:nth-child(even) .timeline-content::after {
        left: -10px;
        right: auto;
    }
}

@media (max-width: 768px) {
    .tech-section {
        padding: 60px 0;
    }

    .tech-header h2 {
        font-size: 1.8rem;
    }

    .tech-visual img {
        height: 300px;
    }

    .tech-cards,
    .team-grid {
        grid-template-columns: 1fr;
    }

    .extended-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .alumni-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .contact-form {
        padding: 30px 20px;
    }

    .map-container {
        padding: 30px 20px;
    }
}

@media (max-width: 576px) {
    .extended-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    .alumni-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .extended-card,
    .alumni-card {
        padding: 15px 10px;
    }

    .extended-photo {
        width: 100px;
        height: 100px;
    }

    .alumni-photo {
        width: 80px;
        height: 80px;
    }

    .social-icons {
        justify-content: center;
    }

    .social-icons a {
        width: 45px;
        height: 45px;
        font-size: 1.1rem;
    }
}

/* Animation for team cards */
@keyframes teamCardEntrance {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.95);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.team-card.animated {
    animation: teamCardEntrance 0.6s ease forwards;
}

.team-card:nth-child(2) {
    animation-delay: 0.1s;
}

.team-card:nth-child(3) {
    animation-delay: 0.2s;
}

.team-card:nth-child(4) {
    animation-delay: 0.3s;
}

.team-card:nth-child(5) {
    animation-delay: 0.4s;
}

/* Hover effect for contact details */
.contact-detail {
    transition: var(--transition);
}

.contact-detail:hover {
    transform: translateX(10px);
}

.contact-detail:hover i {
    color: var(--accent-orange);
    transform: scale(1.2);
}

.contact-detail i {
    transition: var(--transition);
}

/* Form validation styles */
.form-group input:invalid:focus,
.form-group textarea:invalid:focus {
    border-color: var(--accent-sienna);
}

.error-message {
    color: var(--accent-sienna);
    font-size: 0.875rem;
    margin-top: 5px;
    display: none;
}

.form-group.error .error-message {
    display: block;
}

.form-group.error input,
.form-group.error textarea {
    border-color: var(--accent-sienna);
}

/* Loading animation for form submission */
@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.btn-primary.loading {
    position: relative;
    color: transparent;
}

.btn-primary.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}







/* --------------------------------------------ChatBot style --------------------------------------- */

/* Scoped font to avoid overriding your website's main font */
.chat-toggler,
.chatbot {
    font-family: 'Inter', sans-serif;
}

/* Floating Button */
.chat-toggler {
    position: fixed;
    right: 35px;
    bottom: 30px;
    height: 60px;
    width: 60px;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #2A9D8F;
    color: #ffffff;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    z-index: 9999;

    /* Ensures it stays above your website content */
}

/* --- Chat Button Hover Message (Tooltip) --- */

.chat-toggler::before {
    content: "How can I help you?";
    position: absolute;
    right: 65px;
    /* Start slightly close to the button */
    top: 50%;
    transform: translateY(-50%);
    background: #2A9D8F;
    color: var(--text-main);
    padding: 10px 16px;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 500;
    white-space: nowrap;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: all 0.3s ease;
}

/* Make it visible and slide it out slightly on hover */
.chat-toggler:hover::before {
    opacity: 1;
    visibility: visible;
    right: 75px;
}

/* Hide the hover message completely when the chatbot window is open */
body.show-chatbot .chat-toggler::before {
    display: none;
}

.chat-toggler:hover {
    scale: 1.2;
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.chat-toggler span {
    position: absolute;
}

.chat-toggler span:last-child {
    opacity: 0;
}

body.show-chatbot .chat-toggler {
    transform: rotate(90deg);
}

body.show-chatbot .chat-toggler span:first-child {
    opacity: 0;
}

body.show-chatbot .chat-toggler span:last-child {
    opacity: 1;
}

/* Chat Window */
.chatbot {
    position: fixed;
    right: 35px;
    bottom: 100px;
    width: 380px;
    background: rgb(255, 255, 255);
    border-radius: 15px;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
    transform: scale(0.5);
    transform-origin: bottom right;
    transition: all 0.3s ease;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    z-index: 9999;
    /* Ensures it stays above your website content */
}

body.show-chatbot .chatbot {
    opacity: 1;
    pointer-events: auto;
    transform: scale(1);
}

.chatbot header {
    background: var(--primary-color);
    padding: 16px 0;
    text-align: center;
    color: white;
    margin: 0;
}

.chatbot header h2 {
    margin: 0;
    font-size: 1.4rem;
}

.chatbox {
    height: 400px;
    overflow-y: auto;
    padding: 20px;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin: 0;
}

.chatbox li {
    display: flex;
    font-size: 0.95rem;
}

.chatbox .incoming span {
    height: 32px;
    width: 32px;
    background: var(--primary-color);
    color: white;
    border-radius: 4px;
    margin-right: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.chatbox .chat p {
    padding: 12px 16px;
    border-radius: 10px;
    max-width: 75%;
    line-height: 1.4;
    margin: 0;
}

.chatbox .incoming p {
    background: #f1f1f1;
    color: var(--text-main);
}

.chatbox .outgoing {
    justify-content: flex-end;
}

.chatbox .outgoing p {
    background: #f1f1f1;
    color: var(--text-main);
}

/* Footer Input */
.chat-input {
    display: flex;
    gap: 5px;
    padding: 10px 20px;
    border-top: 1px solid #ddd;
    align-items: center;
    background: white;
}

.chat-input textarea {
    height: 40px;
    width: 100%;
    border: none;
    outline: none;
    resize: none;
    font-size: 0.95rem;
    padding: 10px 0;
}

.chat-input span {
    cursor: pointer;
    color: var(--primary-color);
    visibility: hidden;
}

.chat-input textarea:valid~span {
    visibility: visible;
}
/* --- Markdown Formatting Overrides --- */

/* Ensure the chat bubble can hold block elements like lists nicely */
.chatbox .chat p {
    word-wrap: break-word;
    display: flex;
    flex-direction: column;
    gap: 8px; /* Adds space between paragraphs */
}

/* Style the bold text */
.chatbox .chat p strong {
    font-weight: 600;
    color: #000;
}

/* Style unordered and ordered lists */
.chatbox .chat ul, 
.chatbox .chat ol {
    margin: 5px 0 5px 20px; /* Indent lists properly */
    padding: 0;
}

.chatbox .chat li {
    margin-bottom: 4px;
    display: list-item; /* Override your previous flex setting for li */
}






/* --- UPDATES PAGE STYLES --- */

/* Hero Section */
.updates-hero {
    background: linear-gradient(135deg, #264653 0%, #2A9D8F 100%);
    color: white;
    min-height: 40vh;
    display: flex;
    align-items: center;
    padding-top: 80px;
    text-align: center;
    position: relative;
}

/* Filter Section */
.filter-section {
    background-color: #f4f7f6;
    padding: 30px 0;
    position: sticky;
    top: 70px;
    /* Adjust based on navbar height */
    z-index: 90;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.filter-buttons {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
}

.filter-btn {
    padding: 8px 20px;
    border: 2px solid #2A9D8F;
    border-radius: 25px;
    background: transparent;
    color: #264653;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-btn:hover,
.filter-btn.active {
    background-color: #2A9D8F;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(42, 157, 143, 0.3);
}

/* Timeline Layout */
.timeline-wrapper {
    position: relative;
    max-width: 1000px;
    margin: 40px auto;
    padding: 20px 0;
}

/* The vertical center line */
.timeline-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 4px;
    background: #e0e0e0;
    transform: translateX(-50%);
    border-radius: 2px;
}

.update-item {
    position: relative;
    width: 50%;
    padding: 0 40px;
    box-sizing: border-box;
    margin-bottom: 60px;
}

/* Default: Left Side */
.update-item {
    left: 0;
    text-align: right;
}

/* Alternate: Right Side */
.update-item.alt {
    left: 50%;
    text-align: left;
}

/* Center Dot */
.update-dot {
    position: absolute;
    top: 20px;
    width: 20px;
    height: 20px;
    background: #E9C46A;
    border: 4px solid white;
    border-radius: 50%;
    box-shadow: 0 0 0 4px rgba(233, 196, 106, 0.3);
    z-index: 2;
}

.update-item .update-dot {
    right: -12px;
}

.update-item.alt .update-dot {
    left: -12px;
    right: auto;
}

/* Date Label */
.update-date {
    position: absolute;
    top: 20px;
    font-weight: 700;
    color: #2A9D8F;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.9rem;
}

.update-item .update-date {
    right: -160px;
    text-align: left;
    width: 100px;
}

.update-item.alt .update-date {
    left: -160px;
    text-align: right;
    width: 100px;
}

/* Card Styling */
.update-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease;
    text-align: left;
    /* Keep text inside card left-aligned always */
}

.update-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
}

.card-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.update-card:hover .card-image img {
    transform: scale(1.05);
}

.category-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    padding: 5px 12px;
    border-radius: 20px;
    color: white;
    font-size: 0.8rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

/* Category Colors */
.category-badge.award {
    background-color: #E9C46A;
    color: #333;
}

.category-badge.meeting {
    background-color: #264653;
}

.category-badge.patent {
    background-color: #E76F51;
}

.category-badge.event {
    background-color: #2A9D8F;
}

.card-content {
    padding: 25px;
}

.card-content h3 {
    margin: 0 0 10px;
    color: #264653;
    font-size: 1.25rem;
    line-height: 1.3;
}

.card-content p {
    color: #666;
    font-size: 0.95rem;
    margin-bottom: 15px;
}

.read-more {
    color: #2A9D8F;
    font-weight: 600;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.read-more:hover {
    gap: 10px;
}

/* --- MOBILE RESPONSIVENESS --- */
@media (max-width: 768px) {
    .timeline-wrapper::before {
        left: 30px;
        /* Move line to left */
    }

    .update-item,
    .update-item.alt {
        width: 100%;
        left: 0;
        padding-left: 70px;
        /* Space for line */
        padding-right: 0;
        text-align: left;
    }

    /* Fix Dot Position */
    .update-item .update-dot,
    .update-item.alt .update-dot {
        left: 20px;
        right: auto;
    }

    /* Fix Date Position */
    .update-item .update-date,
    .update-item.alt .update-date {
        position: relative;
        top: 0;
        left: 0;
        right: auto;
        text-align: left;
        margin-bottom: 10px;
        width: auto;
    }
}