/* ==========================================================================
   CSS Variables & Base
   ========================================================================== */
   :root {
    /* Color Palette */
    --primary-color: #0d3b66; /* Deep Blue - Trust, Professionalism */
    --secondary-color: #048ba8; /* Teal - Healing, Calm */
    --accent-color: #16db93; /* Soft Green - Growth, Recovery */
    --text-main: #2b2d42; /* Charcoal */
    --text-muted: #6c757d; /* Soft Grey for secondary text */
    --bg-main: #ffffff; /* White */
    --bg-light: #f8f9fa; /* Off White / Light Beige */
    --border-color: #e9ecef;
    --error-color: #ef476f;

    /* Typography */
    --font-family: 'Inter', sans-serif;
    --h1-size: clamp(2.5rem, 5vw, 4rem);
    --h2-size: clamp(2rem, 4vw, 2.75rem);
    --h3-size: 1.5rem;
    --text-size: 1rem;
    
    /* Layout */
    --container-width: 1200px;
    --section-spacing: 5rem;
    
    /* Effects */
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.05);
    --shadow-md: 0 10px 20px rgba(0,0,0,0.08);
    --shadow-hover: 0 15px 30px rgba(4, 139, 168, 0.15);
    --transition-fast: 0.2s ease-in-out;
    --transition-normal: 0.3s ease-in-out;
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
}

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

html, body {
    width: 100%;
    overflow-x: hidden;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-family);
    color: var(--text-main);
    background-color: var(--bg-main);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color var(--transition-fast);
}

ul {
    list-style: none;
}

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

.container {
    width: 90%;
    max-width: var(--container-width);
    margin: 0 auto;
}

.section {
    padding: var(--section-spacing) 0;
}

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

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

/* Typography Hierarchy */
h1, h2, h3, h4 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.section-title {
    font-size: var(--h2-size);
    margin-bottom: 0.5rem;
}

.section-subtitle {
    font-size: 1.125rem;
    color: var(--text-muted);
    margin-bottom: 3rem;
    max-width: 700px;
    margin-inline: auto;
}

p {
    margin-bottom: 1rem;
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.8rem 1.75rem;
    font-weight: 600;
    border-radius: var(--radius-sm);
    transition: all var(--transition-normal);
    cursor: pointer;
    border: 2px solid transparent;
    font-size: 1rem;
}

.btn-primary {
    background-color: var(--secondary-color);
    color: white;
}

.btn-primary:hover {
    background-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-secondary {
    background-color: var(--primary-color);
    color: white;
}

.btn-secondary:hover {
    background-color: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-outline {
    background-color: transparent;
    color: var(--bg-main);
    border-color: var(--bg-main);
}

.btn-outline:hover {
    background-color: var(--bg-main);
    color: var(--primary-color);
}

.btn-large {
    padding: 1rem 2rem;
    font-size: 1.125rem;
    width: 100%;
}

/* ==========================================================================
   Top Bar & Header
   ========================================================================== */
.top-bar {
    background-color: var(--primary-color);
    color: white;
    padding: 0.5rem 0;
    font-size: 0.875rem;
}

.top-bar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.contact-info {
    display: flex;
    gap: 1.5rem;
}

.contact-info a {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #e0e0e0;
}

.contact-info a:hover {
    color: white;
}

.facility-badge {
    background-color: var(--secondary-color);
    padding: 0.2rem 0.75rem;
    border-radius: 20px;
    font-weight: 500;
}

.header {
    background-color: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: padding var(--transition-fast), box-shadow var(--transition-fast);
    padding: 1rem 0;
}

.header.scrolled {
    padding: 0.75rem 0;
    box-shadow: var(--shadow-sm);
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 0;
}

.logo-img {
    height: 55px;
    width: auto;
    object-fit: contain;
    transform: scale(1.6);
    margin-right: 15px;
    margin-left: -20px;
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.logo-primary {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    line-height: 1.2;
}

.logo-secondary {
    font-size: 0.75rem;
    color: var(--secondary-color);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
}

.main-nav ul {
    display: flex;
    gap: 2rem;
}

.main-nav a {
    font-weight: 500;
    color: var(--text-main);
    position: relative;
}

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

.main-nav a:hover::after {
    width: 100%;
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background-color: var(--primary-color);
    transition: var(--transition-fast);
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero {
    position: relative;
    padding: 8rem 0;
    background-color: var(--primary-color);
    /* In production, replace with high quality image */
    background-image: linear-gradient(to right, rgba(13, 59, 102, 0.9), rgba(13, 59, 102, 0.7)), url('https://images.unsplash.com/photo-1579684385127-1ef15d508118?q=80&w=2000&auto=format&fit=crop');
    background-size: cover;
    background-position: center;
    color: white;
    text-align: center;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
}

.hero-subtitle {
    display: inline-block;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 1rem;
    background-color: rgba(255,255,255,0.1);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    backdrop-filter: blur(4px);
}

.hero-title {
    color: white;
    margin-bottom: 1.5rem;
}

.hero-description {
    font-size: 1.25rem;
    margin-bottom: 2.5rem;
    color: rgba(255,255,255,0.9);
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

/* ==========================================================================
   About Section
   ========================================================================== */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.lead {
    font-size: 1.125rem;
    font-weight: 500;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.ceo-message {
    margin-top: 2rem;
    padding: 2rem;
    background-color: white;
    border-left: 4px solid var(--secondary-color);
    box-shadow: var(--shadow-sm);
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
}

.ceo-message blockquote {
    font-size: 1.1rem;
    font-style: italic;
    color: var(--text-main);
    margin-bottom: 1rem;
}

.ceo-message cite {
    font-weight: 700;
    color: var(--primary-color);
    font-size: 0.9rem;
}

.about-features {
    display: grid;
    gap: 1.5rem;
}

.feature-card {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 1.5rem;
    padding: 1.5rem 2rem;
    background: white;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
    border-color: var(--secondary-color);
}

.feature-icon {
    width: 50px;
    height: 50px;
    background-color: var(--bg-light);
    color: var(--secondary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.feature-content h3 {
    margin-bottom: 0.25rem;
    font-size: 1.25rem;
}

.feature-content p {
    margin-bottom: 0;
    color: var(--text-muted);
}

/* ==========================================================================
   Services Section
   ========================================================================== */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.service-card {
    background: white;
    padding: 2.5rem 2rem;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    text-align: center;
    transition: all var(--transition-normal);
    box-shadow: var(--shadow-sm);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
    border-color: var(--secondary-color);
}

.service-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 1.5rem;
    background-color: var(--secondary-color);
    color: white;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
}

.service-card h3 {
    margin-bottom: 1rem;
    font-size: 1.25rem;
}

/* ==========================================================================
   SOPs & Patient Rights
   ========================================================================== */
.sops-layout {
    display: flex;
    flex-direction: column;
    gap: 5rem;
    max-width: 900px;
    margin: 0 auto;
}

.subsection-title {
    margin-bottom: 2rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--border-color);
}

/* Rights Timeline */
.rights-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    position: relative;
}

.rights-list::before {
    content: '';
    position: absolute;
    left: 7px;
    top: 0;
    bottom: 0;
    width: 2px;
    background-color: var(--border-color);
}

.right-item {
    display: flex;
    gap: 1.5rem;
    position: relative;
    z-index: 1;
}

.right-bullet {
    width: 16px;
    height: 16px;
    background-color: white;
    border: 2px solid var(--secondary-color);
    border-radius: 50%;
    margin-top: 5px;
    flex-shrink: 0;
}

.right-content {
    background: white;
    padding: 1.5rem;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    flex-grow: 1;
}

.right-content h4 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.right-content p {
    margin-bottom: 0;
    color: var(--text-muted);
}

/* Accordion */
.sops-accordion {
    display: flex;
    flex-direction: column;
}
.accordion {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.accordion-item {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    overflow: hidden;
}

.accordion-header {
    width: 100%;
    text-align: left;
    padding: 1.5rem 1.5rem;
    background: none;
    border: none;
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--primary-color);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background-color var(--transition-fast);
}

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

.accordion-header .icon {
    font-size: 1.5rem;
    font-weight: 400;
    transition: transform var(--transition-normal);
}

.accordion-header.active {
    border-bottom: 1px solid var(--border-color);
}

.accordion-header.active .icon {
    transform: rotate(45deg);
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out, padding 0.3s ease;
    padding: 0 1.5rem;
    background-color: white;
}

.accordion-content p, .accordion-content ul {
    padding: 1.5rem 0;
    margin: 0;
}

.accordion-content ul {
    list-style-type: disc;
    padding-left: 3rem;
}

/* ==========================================================================
   Mental Health Awareness
   ========================================================================== */
.awareness-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin-bottom: 4rem;
}

.awareness-card {
    padding: 2.5rem 2rem;
    border-radius: var(--radius-lg);
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.awareness-card h3 {
    color: white;
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
}

.awareness-card ul {
    margin-bottom: 2rem;
    flex-grow: 1;
}

.awareness-card li {
    margin-bottom: 0.75rem;
    position: relative;
    padding-left: 1.5rem;
}

.awareness-card li::before {
    content: '•';
    position: absolute;
    left: 0;
    font-size: 1.2rem;
}

.awareness-card .tagline {
    font-weight: 700;
    font-size: 1.1rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255,255,255,0.2);
}

.awareness-card.primary { background-color: var(--primary-color); }
.awareness-card.secondary { background-color: var(--secondary-color); }
.awareness-card.tertiary { background-color: #5c677d; }
.awareness-card.alert { background-color: #d90429; }

.prayer-section {
    max-width: 800px;
    margin: 0 auto;
    padding: 4rem;
    background-color: var(--bg-light);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
}

.prayer-title {
    font-size: 1.75rem;
    margin-bottom: 1rem;
}

.prayer-arabic {
    font-style: italic;
    color: var(--text-muted);
    margin-bottom: 2rem;
}

.prayer-text {
    font-size: 1.25rem;
    line-height: 1.8;
    margin-bottom: 2rem;
    font-weight: 500;
}

.prayer-taglines {
    font-weight: 700;
    color: var(--secondary-color);
    letter-spacing: 1px;
    text-transform: uppercase;
}

/* ==========================================================================
   Admission Form
   ========================================================================== */
.form-container {
    width: 100%;
    box-sizing: border-box;
    max-width: 900px;
    margin: 0 auto;
    background: white;
    padding: 3.5rem;
    border-radius: var(--radius-lg);
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    border: 1px solid var(--border-color);
}

.form-row {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.form-group {
    flex: 1;
    min-width: 250px;
    display: flex;
    flex-direction: column;
}

.form-group.full-width {
    flex: 100%;
}

.form-group.flex-2 {
    flex: 2;
}

label {
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-main);
    font-size: 0.95rem;
}

input[type="text"],
input[type="number"],
input[type="tel"],
select,
textarea {
    width: 100%;
    padding: 0.9rem 1.2rem;
    border: 1px solid #ced4da;
    border-radius: var(--radius-sm);
    font-family: inherit;
    font-size: 1rem;
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
    background-color: #fcfcfc;
}

input:hover,
select:hover,
textarea:hover {
    border-color: #a8b2bc;
}

select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23048ba8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 1.2em;
    padding-right: 3rem;
}

input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 3px rgba(4, 139, 168, 0.1);
    background-color: #fff;
}

.checkbox-group {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    padding: 0.5rem 0;
    background: #f8f9fa;
    padding: 1rem 1.5rem;
    border-radius: var(--radius-sm);
    border: 1px solid #ced4da;
}

.checkbox-group label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 400;
    cursor: pointer;
}

.form-submit {
    margin-top: 3rem;
    text-align: center;
}

.form-disclaimer {
    margin-top: 1rem;
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* ==========================================================================
   Footer
   ========================================================================== */
.footer {
    background-color: #1a1d20;
    color: #e9ecef;
    padding-top: 5rem;
}

.footer h3, .footer h4 {
    color: white;
}

.footer .logo-img {
    border-radius: 50%;
    transform: scale(1);
    margin-right: 15px;
    margin-left: 0;
    height: 65px;
}

.footer-top {
    display: grid;
    grid-template-columns: 2fr 1fr 2fr;
    gap: 4rem;
    margin-bottom: 3rem;
}

.footer-info h3 {
    margin-bottom: 0.5rem;
}

.footer-contact-details {
    margin-top: 1.5rem;
}

.footer-contact-details p {
    margin-bottom: 0.5rem;
    color: #adb5bd;
}

.footer-links ul {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-links a {
    color: #adb5bd;
}

.footer-links a:hover {
    color: var(--secondary-color);
}

.map-container {
    border-radius: var(--radius-md);
    overflow: hidden;
}

.footer-bottom {
    background-color: #111315;
    padding: 1.5rem 0;
    text-align: center;
    font-size: 0.875rem;
    color: #6c757d;
}

/* ==========================================================================
   Animations & Utilities
   ========================================================================== */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

/* ==========================================================================
   Our Impact Section
   ========================================================================== */
.impact-banner {
    background: linear-gradient(135deg, #e0f2fe, #bae6fd);
    color: #0369a1;
    font-weight: 700;
    font-size: 1rem;
    text-align: center;
    padding: 0.8rem 2rem;
    border-radius: 50px;
    margin: 0 auto 2.5rem auto;
    display: flex;
    max-width: max-content;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    box-shadow: 0 4px 15px rgba(2, 132, 199, 0.15);
    border: 1px solid #7dd3fc;
}

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

.impact-card {
    background-color: #2b82c9;
    color: white;
    padding: 3rem 2rem;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    transition: transform var(--transition-normal);
}

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

.impact-icon {
    margin: 0 auto 1.5rem auto;
    color: #2b82c9;
    background-color: white;
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.impact-number {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    line-height: 1;
}

.impact-label {
    font-size: 1.1rem;
    font-weight: 500;
    opacity: 0.9;
    letter-spacing: 1px;
}

/* ==========================================================================
   Meet Our Experts Section
   ========================================================================== */
.experts-flex-center {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
    margin-bottom: 3rem;
}

.experts-flex-center .expert-card {
    width: 100%;
    max-width: 350px;
}

.experts-grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin-bottom: 3rem;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.experts-grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.expert-card {
    background: white;
    border-radius: var(--border-radius);
    overflow: visible;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.05);
    transition: all 0.4s ease;
    display: flex;
    flex-direction: column;
    position: relative;
    margin-top: 80px;
}

.expert-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 35px -5px rgba(0, 0, 0, 0.1);
}

.expert-image {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    object-position: top center;
    position: absolute;
    top: -75px;
    left: 50%;
    transform: translateX(-50%);
    border: 6px solid white;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    transition: transform 0.4s ease;
}

.expert-card:hover .expert-image {
    transform: translateX(-50%) scale(1.05);
}

.expert-details {
    padding: 2rem;
    padding-top: 5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    text-align: center;
}

/* Align contents centrally for headings */
.expert-details h3 {
    font-size: 1.5rem;
    color: var(--text-color);
    margin-bottom: 0.25rem;
    text-align: center;
}

.expert-subtitle {
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 1.5rem;
    text-align: center;
}

.expert-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    justify-content: center;
}

.expert-tags .tag {
    background-color: #f3f4f6;
    color: #374151;
    padding: 4px 12px;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 500;
    display: inline-block;
}

.expert-pricing {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-color);
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #eaeaea;
}

.expert-info-box {
    background-color: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 0.5rem;
    padding: 1rem;
    font-size: 0.875rem;
    color: var(--text-light);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.expert-info-box strong {
    color: var(--text-color);
    display: block;
    margin-bottom: 0.25rem;
}

.expert-bio {
    color: var(--text-light);
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
    flex: 1;
}

.expert-buttons {
    margin-top: auto;
}

.expert-buttons.dual {
    display: flex;
    flex-direction: row;
    gap: 0.75rem;
}

.expert-buttons .btn {
    width: 100%;
    text-align: center;
    padding: 0.75rem 1rem;
}

/* ==========================================================================
   Gallery Section
   ========================================================================== */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.gallery-item {
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
    height: 300px;
}

.gallery-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-img.certificate {
    object-fit: contain;
    background-color: #f8f9fa;
    padding: 1rem;
}

.gallery-item:hover .gallery-img {
    transform: scale(1.05);
}

.mt-4 {
    margin-top: 2rem;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ==========================================================================
   Responsive Design
   ========================================================================== */
@media (max-width: 992px) {
    .sops-layout,
    .about-grid,
    .experts-grid-2,
    .experts-grid-3,
    .gallery-grid,
    .footer-top {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .top-bar-content {
        flex-direction: column;
        justify-content: center;
        text-align: center;
        gap: 0.5rem;
    }

    .contact-info {
        flex-direction: column;
        align-items: center;
        gap: 0.5rem;
    }
    
    .header-actions {
        display: none;
    }

    .mobile-menu-toggle {
        display: flex;
        z-index: 1001;
    }

    .main-nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 300px;
        height: 100vh;
        background-color: white;
        padding: 5rem 2rem;
        box-shadow: -5px 0 15px rgba(0,0,0,0.1);
        transition: right var(--transition-normal);
        z-index: 1000;
    }

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

    .main-nav ul {
        flex-direction: column;
        gap: 1.5rem;
    }
}

@media (max-width: 768px) {
    :root {
        --section-spacing: 3rem;
    }

    .expert-buttons.dual {
        grid-template-columns: 1fr;
    }

    .impact-banner {
        font-size: 0.9rem;
        padding: 0.75rem 1.5rem;
        flex-direction: column;
        text-align: center;
    }

    .form-container {
        padding: 1.5rem;
    }

    .awareness-grid {
        grid-template-columns: 1fr;
    }

    .hero {
        padding: 5rem 0;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }
    
    .hero-buttons .btn {
        width: 100%;
        max-width: 300px;
    }

    .form-row {
        flex-direction: column;
        gap: 0;
    }
    
    .form-group {
        margin-bottom: 1.5rem;
    }
    
    .header .logo-img {
        margin-right: 0;
    }
}
