@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;600;700&display=swap');

:root {
    --primary-color: #005A9C; /* Rotary Blue */
    --secondary-color: #F7A81B; /* Rotary Gold */
    --accent-color: #4CB050; /* Vision / Health Green */
    --text-dark: #333333;
    --text-light: #F4F4F9;
    --bg-light: #FFFFFF;
    --bg-subtle: #F0F4F8;
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

body {
    background-color: var(--bg-light);
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Header & Navigation */
header {
    background: var(--bg-light);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 10px 20px;
}

.logo img {
    height: 50px;
    transition: var(--transition);
}

.logo img:hover {
    transform: scale(1.05);
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 20px;
}

.nav-links li a {
    text-decoration: none;
    color: var(--primary-color);
    font-weight: 600;
    position: relative;
    padding: 5px 0;
    transition: var(--transition);
}

.nav-links li a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--secondary-color);
    transition: var(--transition);
}

.nav-links li a:hover::after, .nav-links li a.active::after {
    width: 100%;
}

.mobile-menu-btn {
    display: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--primary-color);
}

/* Hero & Carousel */
.hero {
    position: relative;
    height: 60vh;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    text-align: center;
}

.hero-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -2;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 90, 156, 0.7);
    z-index: -1;
}

.hero-content {
    animation: fadeInDown 1s ease-out forwards;
    padding: 20px;
    max-width: 800px;
}

.hero-content h1 {
    font-size: 3rem;
    margin-bottom: 20px;
    color: var(--secondary-color);
}

html, body {
  overflow-x: hidden;
  margin: 0;
  padding: 0;
}

/* Main Content */
main {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
    min-height: 50vh;
}

.section-title {
    color: var(--primary-color);
    font-size: 2.5rem;
    margin-bottom: 20px;
    text-align: center;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: var(--secondary-color);
    margin: 10px auto 0;
    border-radius: 2px;
}

.content-block {
    background: #fff;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    margin-bottom: 30px;
    animation: fadeInUp 0.8s ease forwards;
}

.content-block h2 {
    color: var(--primary-color);
    margin-top: 20px;
    margin-bottom: 15px;
}

.content-block p, .content-block ul {
    margin-bottom: 15px;
    font-size: 1.1rem;
    color: #555;
}

.content-block ul {
    padding-left: 20px;
}

.content-block ul li {
    margin-bottom: 10px;
}

/* Carousel Container */
.myCarousel {
    width: 100%;
    padding: 10px 0;
}

/* Slides image */
.myCarousel .swiper-slide img {
    width: 250px;
    height: 250px;
    object-fit: cover;
    border-radius: 8px;
    display: block;
}

/* 🔥 Tablet */
@media (max-width: 900px) {
    .myCarousel .swiper-slide img {
        width: 180px;
        height: 180px;
    }
}

/* 🔥 Mobile */
@media (max-width: 600px) {
    .myCarousel .swiper-slide img {
        width: 140px;
        height: 140px;
    }
}

/* 🔥 Small mobile */
@media (max-width: 400px) {
    .myCarousel .swiper-slide img {
        width: 120px;
        height: 120px;
    }
}
/* Projects Layout */
.project-row {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    align-items: center;
    margin-bottom: 40px;
    background: var(--bg-subtle);
    border-radius: 12px;
    overflow: hidden;
    transition: var(--transition);
}

.project-row:hover {
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
    transform: translateY(-5px);
}

.project-img {
    flex: 1 1 250px;
    max-width: 300px;
}

.project-img img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    display: block;
}

.project-text {
    flex: 2 1 400px;
    padding: 30px;
}

/* Links Page */
.links-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
}

.link-card {
    background: var(--primary-color);
    color: #fff;
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 80px;
}

.link-card:hover {
    background: var(--secondary-color);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

/* Tables */
table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}

table th, table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

table th {
    background-color: var(--primary-color);
    color: #fff;
}

table tr:hover {
    background-color: var(--bg-subtle);
}

/* Footer */
footer {
    background: var(--primary-color);
    color: var(--text-light);
    text-align: center;
    padding: 40px 20px;
    margin-top: 50px;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.footer-logo {
    height: 55px;
    object-fit: contain;
    background: white;
}

.footer-text p {
    margin-bottom: 10px;
}

.footer-bottom {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.2);
    font-size: 0.9rem;
}

/* Animations */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Responsive */
@media (max-width: 768px) {
    .logo img {
        height: 45px;
    }
    .nav-links {
        display: none;
        flex-direction: column;
        width: 100%;
        position: absolute;
        top: 80px;
        left: 0;
        background: #fff;
        box-shadow: 0 4px 6px rgba(0,0,0,0.1);
        padding: 20px;
    }
    .nav-links.active {
        display: flex;
    }
    .mobile-menu-btn {
        display: block;
    }
    .hero-content h1 {
        font-size: 2rem;
    }
    .project-row {
        flex-direction: column;
    }
    .project-img {
        max-width: 100%;
    }
}

/* Team Profiles (Accordion) */
.accordion-container {
    max-width: 800px;
    margin: 40px auto;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 5px 25px rgba(0,0,0,0.05);
    overflow: hidden;
}

.accordion-item {
    border-bottom: 1px solid var(--bg-subtle);
}

.accordion-item:last-child {
    border-bottom: none;
}

.accordion-header {
    width: 100%;
    text-align: left;
    padding: 20px 25px;
    background: var(--bg-light);
    border: none;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--primary-color);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: var(--transition);
    outline: none;
}

.accordion-header:hover {
    background: var(--bg-subtle);
}

.accordion-header.active {
    background: var(--primary-color);
    color: #fff;
}

.accordion-header i {
    transition: transform 0.3s ease;
}

.accordion-header.active i {
    transform: rotate(180deg);
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
    background: #fafafa;
}

.profile-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 30px;
    text-align: center;
}

.profile-img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 15px;
    border: 5px solid var(--bg-light);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    flex-shrink: 0;
    order: 1;
}

.profile-social {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 20px;
    order: 2;
}

.profile-social a {
    color: var(--primary-color);
    font-size: 1.5rem;
    transition: var(--transition);
}

.profile-social a:hover {
    color: var(--secondary-color);
    transform: scale(1.1);
}

.profile-name {
    color: var(--primary-color);
    font-size: 1.5rem;
    margin-bottom: 5px;
    order: 3;
}

.profile-role {
    color: #666;
    font-size: 1rem;
    margin-bottom: 15px;
    font-weight: 600;
    order: 4;
}

.profile-desc-static {
    font-size: 1rem;
    color: #555;
    line-height: 1.6;
    order: 5;
}

