/* =========================================
   1. VARIABLES & RESET
   ========================================= */
:root {
    --primary: #0056b3;
    /* Medical Blue */
    --primary-dark: #004494;
    --secondary: #00a8cc;
    /* Teal Accent */
    --text-dark: #333333;
    --text-light: #666666;
    --bg-light: #f4f7f6;
    --white: #ffffff;
    --border: #e1e1e1;
    --shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    --font-head: 'Poppins', sans-serif;
    --font-body: 'Open Sans', sans-serif;
    --radius: 8px;
}

[data-theme="dark"] {
    --primary: #4dabf7;
    --primary-dark: #3b8dc4;
    --secondary: #22b8cf;
    --text-dark: #f1f1f1;
    --text-light: #b0b0b0;
    --bg-light: #121212;
    --white: #1e1e1e;
    --border: #333;
    --shadow: 0 5px 15px rgba(255, 255, 255, 0.05);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background-color: var(--white);
    color: var(--text-dark);
    line-height: 1.6;
    transition: background-color 0.3s, color 0.3s;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    max-width: 100%;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5 {
    font-family: var(--font-head);
    color: var(--text-dark);
    font-weight: 700;
}

a {
    text-decoration: none;
    color: inherit;
    transition: 0.3s;
}

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

ul {
    list-style: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: 40px 0;
}

.bg-light {
    background-color: var(--bg-light);
}

.text-center {
    text-align: center;
}

.mb-2 {
    margin-bottom: 1rem;
}

.mb-4 {
    margin-bottom: 2rem;
}

/* --- Utility Class for Primary Blue Text --- */
.primary-blue-text {
    color: var(--primary);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    border: 2px solid transparent;
}

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

.btn-primary:hover {
    background: var(--primary-dark);
}

.btn-outline {
    border: 2px solid var(--primary);
    color: var(--primary);
}

.btn-outline:hover {
    background: var(--primary);
    color: #fff;
}

/* =========================================
   2. HEADER & NAVIGATION
   ========================================= */
header {
    background: var(--white);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 15px 0;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

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

.nav-links a {
    font-weight: 600;
    font-size: 0.95rem;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--primary);
}

.theme-toggle {
    cursor: pointer;
    font-size: 1.2rem;
    padding: 5px;
}

.hamburger {
    display: none;
    font-size: 1.8rem;
    cursor: pointer;
}

/* =========================================
   LOGO IMAGE STYLING (For RIA Wide Logo)
   ========================================= */

/* Ensure the logo container (the <a> tag) maintains alignment */
nav .logo {
    display: flex;
    align-items: center;
    font-size: 0;
    font-weight: normal;
}

/* Style the actual logo image */
.logo-img {
    height: 60px;
    /* Slightly taller to make the text readable */
    width: auto;
    max-width: 280px;
    /* Set a maximum width for desktop */
}

/* Logo theme switching */
.logo-light {
    display: block;
}

.logo-dark {
    display: none;
}

[data-theme="dark"] .logo-light {
    display: none;
}

[data-theme="dark"] .logo-dark {
    display: block;
}


/* Dropdown container */
.dropdown {
    position: relative;
    display: inline-block; /* Changed from float */
}

/* Dropdown button - matches your nav-links a */
.dropbtn {
    font-weight: 600;
    font-size: 0.9rem;
    border: none;
    outline: none;
    color: inherit;
    padding: inherit 0; /* Matches nav-links a padding */
    background-color: inherit;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
}

.dropbtn:hover {
    color: var(--primary); /* Matches your hover effect */
}

/* Dropdown content */
.dropdown-content {
    display: none;
    position: absolute;
    background-color: #f9f9f9;
    min-width: 200px;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
    top: 100%;
    left: 0;
    z-index: 1000;
}

/* Links inside dropdown */
.dropdown-content a {
    color: #333 !important;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
}

.dropdown-content a:hover {
    background-color: #f1f1f1;
}

/* Hover effects */
.dropdown:hover .dropdown-content {
    display: block;
}


[data-theme="dark"] .dropdown-content {
    background-color: #333;
    box-shadow: 0 8px 16px rgba(0,0,0,0.4);
}

[data-theme="dark"] .dropdown-content a {
    color: #fff !important;
}

[data-theme="dark"] .dropdown-content a:hover {
    background-color: #444;
}



/* Header height adjustment for the logo */
header {
    /* Adjust padding to accommodate the slightly taller logo if needed */
    padding: 10px 0;
}

/* Make it responsive for smaller screens */
@media (max-width: 768px) {
    .logo-img {
        height: 45px;
        /* Scale down for mobile devices */
        max-width: 200px;
    }

    header {
        padding: 8px 0;
        /* Slightly tighter padding on mobile */
    }
}

/* =========================================
    HERO SLIDER
   ========================================= */
   .hero-slider {
    position: relative;
    width: 100%;
    overflow: hidden;
    background: #000;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.2);
}

.slider-container {
    position: relative;
    width: 100%;
    aspect-ratio: 16/6;
    max-height: 500px;
}

@media (min-width: 1024px) {
    .slider-container {
        max-height: 500px;
    }
}

@media (max-width: 768px) {
    .slider-container {
        aspect-ratio: 16/9;
        max-height: 300px;
    }
}

.slider-track {
    display: flex;
    height: 100%;
    transition: transform 0.5s ease-in-out;
}

.slide {
    min-width: 100%;
    height: 100%;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: contain;  /* Changed: shows full image, no cropping */
    object-position: center;
    background: #111;     /* Dark bg for letterboxing */
}


/* Navigation Buttons */
.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.5);
    border: none;
    width: 40px;
    height: 80px;
    font-size: 2rem;
    cursor: pointer;
    color: #333;
    z-index: 10;
    transition: 0.3s;
}

.slider-btn:hover {
    background: rgba(255, 255, 255, 0.9);
}

.prev-btn {
    left: 0;
    border-top-right-radius: 4px;
    border-bottom-right-radius: 4px;
}

.next-btn {
    right: 0;
    border-top-left-radius: 4px;
    border-bottom-left-radius: 4px;
}

/* Dots Indicator */
.slider-dots {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
}

.dot {
    width: 10px;
    height: 10px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    cursor: pointer;
}

.dot.active {
    background: #fff;
    transform: scale(1.2);
}

/* Mobile Adjustments */
@media (max-width: 768px) {
    .slider-btn {
        width: 28px;
        height: 52px;
        font-size: 1.3rem;
        background: rgba(0,0,0,0.3);
        color: #fff;
    }
}


/* =========================================
   4. CARDS & GRID
   ========================================= */
.grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.grid-4 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.card {
    background: var(--white);
    padding: 30px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    border-top: 4px solid var(--primary);
    transition: transform 0.3s;
}

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

.card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: var(--radius);
    margin-bottom: 15px;
}

/* =========================================
   5. PAGE SPECIFIC STYLES
   ========================================= */

/* Footer */
footer {
    background: #d4f1f4;
    color: var(--text-dark);
    margin-top: auto;
}

[data-theme="dark"] footer {
    background: #1a3d42;
}

.footer-content {
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3 {
    margin-bottom: 1rem;
}

.footer-section p {
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

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

.social-links a {
    width: 40px;
    height: 40px;
    background: var(--secondary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}
.social-links a:hover {
    color: #0d6efd;
  }

.footer-section a:hover {
    color: var(--primary);
}

.footer-section li {
    margin-bottom: 0.5rem;
}

.powered-by {
    text-align: center;
    margin-top: 15px;
}

.powered-by a {
    font-weight: 600;
}

.powered-by a:hover {
    color: var(--primary);
}

.copyright {
    text-align: center;
}

/* =========================================
   6. RESPONSIVE
   ========================================= */
@media (max-width: 768px) {
    .hamburger {
        display: block;
        position: relative;
        z-index: 1001;
        color: var(--text-dark);
    }

    .nav-links {
        position: fixed;
        top: 0px;
        right: -100%;
        width: 100%;
        height: 100vh;
        background: var(--white);
        flex-direction: column;
        justify-content: center;
        padding: 20px;
        box-shadow: var(--shadow);
        transition: 0.4s ease-in-out;
        z-index: 999;
    }

    .nav-links.active {
        right: 0;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .grid-2,
    .grid-3 {
        grid-template-columns: 1fr;
    }
}

/* About page specific styles */
.about-content {
    max-width: 900px;
    margin: 0 auto;
    line-height: 1.8;
    text-align: justify;
}

.about-content p {
    margin-bottom: 1.2rem;
    color: var(--text-dark);
}

.about-title {
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
    display: inline-block;
    width: 100%;
}

.about-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 3px;
    background: var(--secondary);
}

/* Office bearers page specific styles */
.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-header h2 {
    position: relative;
    display: inline-block;
}

.section-header h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--primary);
}

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

  /* 4 items per row */
  .bearers-grid-4 {
    grid-template-columns: repeat(4, 1fr);
  }
  
  /* 3 items per row */
  .bearers-grid-3 {
    grid-template-columns: repeat(3, 1fr);
  }
  
  /* Mobile: stack */
  @media (max-width: 768px) {
    .bearers-grid-4,
    .bearers-grid-3 {
      grid-template-columns: 1fr;
    }
  }
  

.bearer-card {
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow);
    text-align: center;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.bearer-card:hover {
    transform: translateY(-8px);
    border-color: var(--primary);
}

.bearer-photo {
    width: 120px;
    height: 120px;
    background: var(--white);
    margin: 0 auto 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2.5rem;
    font-weight: 700;
    overflow: hidden;
}

.bearer-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.bearer-position {
    color: var(--primary);
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
}

.bearer-name {
    font-size: 1.3rem;
    font-weight: 600;
}

article {
    display: block;
    unicode-bidi: isolate;
}

/* Events page specific styles */

.events-grid {
    display: grid;
    gap: 1.5rem;
}

.event-card {
    display: grid;
    grid-template-columns: 120px 1fr;
    gap: 1.5rem;
    background: var(--white);
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
}

@media (max-width: 768px) {
    .event-card {
        grid-template-columns: 150px 1fr;
        gap: 1rem;
    }
}

.event-card:hover {
    transform: translateX(8px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
}

.event-date {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
    color: white;
    border-radius: 8px;
    padding: 1rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.event-day {
    font-size: 2rem;
    font-weight: 700;
    line-height: 1;
}

.event-month {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.event-details h3 {
    margin-bottom: 0.5rem;
}

.event-details p {
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

/* Useful links specific styles */

.links-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.link-card {
    background: var(--white);
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    border-left: 4px solid var(--secondary);
}

.link-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
}

.link-card h3 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.link-card p {
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.link-card a:hover {
    color: var(--primary);
}

/* Contact us page specific styles */

.info-item {
    margin-bottom: 2rem;
}

.info-item:last-child {
    margin-bottom: 0;
}

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

.contact-person {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 0.8rem;
}

.contact-person:last-child {
    margin-bottom: 0;
}

.contact-person .phone {
    color: var(--primary);
}

/* Map Card */
.map-card {
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
}

/* Responsive iframe */
.map-card iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

/* Mobile */
@media (max-width: 768px) {

    .map-card {
        aspect-ratio: 4 / 3;
    }
}

/*  This is for the pdf view*/
.pdf-viewer-section { padding: 60px 0;  text-align: center; }
.pdf-container { 
    max-width: 1000px; height: 700px; margin: 0 auto; 
    border-radius: 12px; overflow: hidden; box-shadow: 0 20px 60px rgba(0,0,0,0.15); 
}
.pdf-iframe { width: 100%; height: 100%; border: none; }

.pdf-controls { margin-top: 20px; }
.pdf-btn { background: #007bff; color: white; border: none; padding: 10px 20px; margin: 0 10px; border-radius: 6px; cursor: pointer; font-size: 16px; }
.pdf-btn:hover { background: #0056b3; }


@media (max-width: 768px) {
    .pdf-container { height: 500px; margin: 0 10px; }
}

  
 
  