/* 
 * Vigil Kerala Foundation - Custom Style Sheet
 * Author: Senior Frontend Developer
 * Description: Clean, modern, responsive design system. Pure CSS with variables.
 */

@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+Malayalam:wght@400;500;600;700&family=Poppins:wght@300;400;500;600;700;800&display=swap');

:root {
    /* Color Palette derived from Vigil Kerala Foundation Logo */
    --primary: #008EA9;
    --primary-rgb: 0, 142, 169;
    --primary-dark: #00667B;
    --primary-light: #E6F7FA;
    --secondary: #E11D48;
    --secondary-dark: #BE123C;
    --secondary-light: #FFF1F2;
    --accent: #00C2E0;
    --bg-light: #F8FAFC;
    --bg-white: #FFFFFF;
    
    /* Text Colors */
    --text-dark: #0F172A;
    --text-muted: #475569;
    --text-light: #F8FAFC;
    
    /* Layout & Shadows */
    --font-primary: 'Poppins', 'Noto Sans Malayalam', sans-serif;
    --shadow-soft: 0 10px 30px rgba(0, 0, 0, 0.05);
    --shadow-medium: 0 20px 40px rgba(0, 0, 0, 0.08);
    --shadow-hover: 0 25px 50px rgba(0, 142, 169, 0.15);
    
    /* Radii */
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    
    /* Transitions */
    --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-quick: all 0.2s ease;
    
    --max-width: 1200px;
    --header-height: 80px;
}

/* ==========================================================================
   Base & Resets
   ========================================================================== */

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

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

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

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

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

ul {
    list-style: none;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: var(--bg-light);
}
::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: var(--radius-sm);
}
::-webkit-scrollbar-thumb:hover {
    background: var(--primary-dark);
}

/* Selection */
::selection {
    background-color: var(--primary);
    color: var(--bg-white);
}

/* ==========================================================================
   Typography
   ========================================================================== */

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.3;
    color: var(--text-dark);
}

h1 {
    font-size: 3rem;
    margin-bottom: 1.5rem;
}

h2 {
    font-size: 2.25rem;
    margin-bottom: 2rem;
    position: relative;
    display: inline-block;
}

/* Heading underline decorative element */
.section-title-wrapper {
    text-align: center;
    margin-bottom: 3.5rem;
}

.section-title-wrapper h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background-color: var(--secondary);
    border-radius: var(--radius-sm);
}

h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

p {
    margin-bottom: 1.5rem;
    color: var(--text-muted);
}

p.lead {
    font-size: 1.15rem;
    font-weight: 400;
}

/* ==========================================================================
   Reusable Utilities
   ========================================================================== */

.container {
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 2rem;
}

.section-padding {
    padding: 6rem 0;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.85rem 2rem;
    font-family: var(--font-primary);
    font-size: 1rem;
    font-weight: 600;
    border-radius: 50px;
    cursor: pointer;
    transition: var(--transition-smooth);
    border: none;
    gap: 0.5rem;
}

.btn-primary {
    background-color: var(--primary);
    color: var(--bg-white);
    box-shadow: 0 4px 15px rgba(0, 142, 169, 0.3);
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 142, 169, 0.4);
}

.btn-secondary {
    background-color: var(--secondary);
    color: var(--text-dark);
    box-shadow: 0 4px 15px rgba(255, 200, 87, 0.3);
}

.btn-secondary:hover {
    background-color: var(--secondary-dark);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(255, 200, 87, 0.4);
}

.btn-outline {
    background-color: transparent;
    color: var(--bg-white);
    border: 2px solid var(--bg-white);
}

.btn-outline:hover {
    background-color: var(--bg-white);
    color: var(--primary);
    transform: translateY(-3px);
}

/* ==========================================================================
   Navigation Bar
   ========================================================================== */

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    z-index: 1000;
    transition: var(--transition-smooth);
    display: flex;
    align-items: center;
}

.navbar.scrolled {
    background-color: rgba(255, 255, 255, 0.95);
    height: 70px;
    box-shadow: var(--shadow-soft);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

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

.logo-container {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.logo-container img {
    height: 45px;
    width: 45px;
    object-fit: contain;
}

.brand-name {
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--bg-white);
    letter-spacing: -0.5px;
    transition: var(--transition-smooth);
}

.navbar.scrolled .brand-name {
    color: var(--primary);
}

.nav-links {
    display: flex;
    gap: 2.25rem;
    align-items: center;
}

.nav-link {
    font-weight: 500;
    color: rgba(255, 255, 255, 0.9);
    position: relative;
    padding: 0.5rem 0;
    font-size: 0.95rem;
}

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

.nav-link:hover, .nav-link.active {
    color: var(--bg-white);
}

.nav-link:hover::after, .nav-link.active::after {
    width: 100%;
}

.navbar.scrolled .nav-link {
    color: var(--text-dark);
}

.navbar.scrolled .nav-link:hover, .navbar.scrolled .nav-link.active {
    color: var(--primary);
}

.navbar.scrolled .nav-link::after {
    background-color: var(--primary);
}

/* Hamburger menu styles */
.hamburger {
    display: none;
    cursor: pointer;
    border: none;
    background: transparent;
    padding: 5px;
}

.hamburger span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--bg-white);
    margin: 5px 0;
    transition: var(--transition-smooth);
    border-radius: 3px;
}

.navbar.scrolled .hamburger span {
    background-color: var(--text-dark);
}

/* ==========================================================================
   Hero Section
   ========================================================================== */

.hero {
    position: relative;
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: var(--bg-white);
    margin-bottom: 2rem;
}

/* Gradient overlay */
.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        135deg, 
        rgba(0, 142, 169, 0.85) 0%, 
        rgba(0, 92, 114, 0.95) 100%
    );
    z-index: 1;
}

.hero .container {
    position: relative;
    z-index: 2;
}

.hero-content {
    max-width: 650px;
}

.hero-tagline {
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--secondary);
    font-weight: 600;
    margin-bottom: 1rem;
    display: block;
}

.hero-title {
    font-size: 3.5rem;
    line-height: 1.15;
    font-weight: 800;
    margin-bottom: 1.5rem;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

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

.hero-cta {
    display: flex;
    gap: 1.25rem;
}

/* For pages other than Index, simple banner */
.page-banner {
    position: relative;
    height: 320px;
    display: flex;
    align-items: center;
    background-size: cover;
    background-position: center;
    color: var(--bg-white);
}

.page-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 142, 169, 0.88) 0%, rgba(0, 92, 114, 0.96) 100%);
    z-index: 1;
}

.page-banner .container {
    position: relative;
    z-index: 2;
    text-align: center;
}

.page-banner h1 {
    font-size: 2.75rem;
    margin-bottom: 0.5rem;
}

.breadcrumb {
    font-size: 0.95rem;
    color: var(--secondary);
    font-weight: 500;
}

.breadcrumb a {
    color: rgba(255, 255, 255, 0.8);
    transition: var(--transition-quick);
}

.breadcrumb a:hover {
    color: var(--bg-white);
}

/* ==========================================================================
   Mission Statement Section
   ========================================================================== */

.mission-highlight-section {
    background-color: var(--bg-white);
}

.mission-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 4rem;
    align-items: center;
}

.mission-text-content h3 {
    color: var(--primary);
    font-size: 1.25rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.75rem;
}

.mission-text-content h2 {
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.mission-text-content p {
    font-size: 1.05rem;
    margin-bottom: 2rem;
}

.stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.stat-card {
    background-color: var(--bg-light);
    padding: 2rem;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-soft);
    text-align: center;
    border-bottom: 4px solid var(--primary);
    transition: var(--transition-smooth);
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-medium);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary);
    line-height: 1.1;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.mission-visual {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-medium);
    height: 450px;
}

.mission-visual img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ==========================================================================
   Focus Areas / Services Section
   ========================================================================== */

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

.focus-card {
    background-color: var(--bg-white);
    padding: 3rem 2.5rem;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-soft);
    transition: var(--transition-smooth);
    border: 1px solid rgba(0, 142, 169, 0.05);
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}

.focus-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background-color: var(--primary);
    transform: scaleX(0);
    transform-origin: left;
    transition: var(--transition-smooth);
}

.focus-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
    border-color: rgba(0, 142, 169, 0.15);
}

.focus-card:hover::before {
    transform: scaleX(1);
}

.focus-icon-wrapper {
    width: 70px;
    height: 70px;
    background-color: var(--primary-light);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 2rem;
    transition: var(--transition-smooth);
}

.focus-icon-wrapper i {
    font-size: 1.75rem;
    color: var(--primary);
    transition: var(--transition-smooth);
}

.focus-card:hover .focus-icon-wrapper {
    background-color: var(--primary);
}

.focus-card:hover .focus-icon-wrapper i {
    color: var(--bg-white);
    transform: rotateY(180deg);
}

.focus-card h3 {
    font-size: 1.35rem;
    margin-bottom: 1.25rem;
    color: var(--text-dark);
}

.focus-card p {
    font-size: 0.95rem;
    margin-bottom: 0;
    flex-grow: 1;
    line-height: 1.7;
}

/* ==========================================================================
   About Page Specific
   ========================================================================== */

/* Vision & Mission Row */
.vision-mission-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-top: 2rem;
}

.vm-card {
    background-color: var(--bg-white);
    padding: 3.5rem 3rem;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-soft);
    position: relative;
    border: 1px solid rgba(0, 0, 0, 0.02);
}

.vm-icon-header {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    margin-bottom: 1.5rem;
}

.vm-icon-header i {
    font-size: 2.25rem;
    color: var(--primary);
}

.vm-icon-header h3 {
    margin-bottom: 0;
    font-size: 1.65rem;
}

.vm-card p {
    font-size: 1.05rem;
    line-height: 1.8;
    margin-bottom: 0;
}

/* Recognition Grid */
.recognition-section {
    background-color: var(--bg-white);
}

.recognition-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
    margin-top: 1rem;
}

.recognition-card {
    background-color: var(--bg-light);
    padding: 3rem 2rem;
    border-radius: var(--radius-md);
    text-align: center;
    box-shadow: var(--shadow-soft);
    transition: var(--transition-smooth);
    border: 1px solid rgba(0, 0, 0, 0.02);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.recognition-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-medium);
    border-color: rgba(0, 142, 169, 0.1);
}

.rec-icon {
    width: 80px;
    height: 80px;
    background-color: rgba(0, 142, 169, 0.08);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.75rem;
    color: var(--primary);
}

.rec-icon i {
    font-size: 2.25rem;
}

.recognition-card h4 {
    font-size: 1.15rem;
    font-weight: 700;
    line-height: 1.5;
    margin-bottom: 0;
    color: var(--text-dark);
}

.history-text-wrapper {
    max-width: 800px;
    margin: 4rem auto 0;
    text-align: center;
}

.history-text-wrapper p {
    font-size: 1.15rem;
    line-height: 1.8;
}

/* ==========================================================================
   Gallery Page Specific
   ========================================================================== */

#gallery-container {
    display: flex;
    flex-direction: column;
    gap: 4rem;
}

.gallery-section {
    background-color: var(--bg-white);
    padding: 3rem;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-soft);
    border: 1px solid rgba(0, 0, 0, 0.02);
}

.gallery-category-title {
    font-size: 1.75rem;
    margin-bottom: 2rem;
    color: var(--text-dark);
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-left: 5px solid var(--primary);
    padding-left: 1rem;
}

.gallery-category-title span {
    font-size: 0.9rem;
    font-weight: 500;
    background-color: var(--bg-light);
    color: var(--primary);
    padding: 0.35rem 0.85rem;
    border-radius: 30px;
    border: 1px solid rgba(0, 142, 169, 0.1);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}

.gallery-item {
    position: relative;
    border-radius: var(--radius-sm);
    overflow: hidden;
    height: 250px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.03);
    cursor: pointer;
    background-color: var(--bg-light);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-smooth);
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0, 142, 169, 0.9) 0%, rgba(0, 142, 169, 0.4) 100%);
    opacity: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    transition: var(--transition-smooth);
    color: var(--bg-white);
    padding: 1.5rem;
    text-align: center;
    z-index: 2;
}

.gallery-overlay i {
    font-size: 2rem;
    margin-bottom: 0.75rem;
    transform: translateY(20px);
    transition: var(--transition-smooth);
}

.gallery-overlay span {
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 1px;
    text-transform: uppercase;
    transform: translateY(20px);
    transition: var(--transition-smooth);
}

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

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-item:hover .gallery-overlay i,
.gallery-item:hover .gallery-overlay span {
    transform: translateY(0);
}

/* Lightbox Modal */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(15, 23, 42, 0.95);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.lightbox.active {
    opacity: 1;
    pointer-events: auto;
}

.lightbox-content-wrapper {
    position: relative;
    max-width: 90%;
    max-height: 85%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.lightbox-img {
    max-width: 100%;
    max-height: 75vh;
    border-radius: var(--radius-sm);
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
    object-fit: contain;
    transform: scale(0.95);
    transition: var(--transition-smooth);
}

.lightbox.active .lightbox-img {
    transform: scale(1);
}

.lightbox-caption {
    color: rgba(255, 255, 255, 0.9);
    margin-top: 1.5rem;
    font-size: 1.1rem;
    font-weight: 500;
    text-align: center;
}

.lightbox-close {
    position: absolute;
    top: 30px;
    right: 30px;
    background: transparent;
    border: none;
    color: var(--bg-white);
    font-size: 2.25rem;
    cursor: pointer;
    transition: var(--transition-quick);
    z-index: 2100;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: rgba(255,255,255,0.05);
}

.lightbox-close:hover {
    color: var(--secondary);
    background-color: rgba(255,255,255,0.15);
    transform: scale(1.1);
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.05);
    border: none;
    color: var(--bg-white);
    width: 55px;
    height: 55px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-smooth);
    z-index: 2050;
}

.lightbox-nav:hover {
    background-color: var(--primary);
    color: var(--bg-white);
    transform: translateY(-50%) scale(1.08);
}

.lightbox-prev {
    left: 40px;
}

.lightbox-next {
    right: 40px;
}

/* ==========================================================================
   Contact Page Specific
   ========================================================================== */

.contact-layout {
    display: grid;
    grid-template-columns: 1fr 1.3fr;
    gap: 3.5rem;
}

.contact-info-card {
    background-color: var(--primary);
    color: var(--bg-white);
    padding: 4rem 3rem;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-medium);
    display: flex;
    flex-direction: column;
}

.contact-info-card h3 {
    color: var(--bg-white);
    font-size: 1.75rem;
    margin-bottom: 1rem;
}

.contact-info-card p.intro {
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 2.5rem;
}

.info-details-list {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    flex-grow: 1;
}

.info-item {
    display: flex;
    gap: 1.25rem;
    align-items: flex-start;
}

.info-item i {
    font-size: 1.35rem;
    color: var(--secondary);
    margin-top: 3px;
}

.info-item-content h4 {
    color: var(--bg-white);
    font-size: 1.05rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.info-item-content p {
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.95rem;
    margin-bottom: 0;
}

.contact-socials-wrapper {
    margin-top: 3rem;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    padding-top: 2rem;
}

.contact-socials-wrapper h4 {
    color: var(--bg-white);
    font-size: 1rem;
    margin-bottom: 1rem;
}

.contact-socials {
    display: flex;
    gap: 1rem;
}

.contact-socials a {
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--bg-white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    transition: var(--transition-quick);
}

.contact-socials a:hover {
    background-color: var(--secondary);
    color: var(--text-dark);
    transform: translateY(-3px);
}

/* Contact Form Card */
.contact-form-card {
    background-color: var(--bg-white);
    padding: 4rem 3.5rem;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-soft);
    border: 1px solid rgba(0,0,0,0.02);
}

.contact-form-card h3 {
    font-size: 1.75rem;
    margin-bottom: 2rem;
}

.form-group-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.form-group {
    margin-bottom: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-dark);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-control {
    width: 100%;
    padding: 0.9rem 1.2rem;
    font-family: var(--font-primary);
    font-size: 0.95rem;
    background-color: var(--bg-light);
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: var(--radius-sm);
    color: var(--text-dark);
    transition: var(--transition-quick);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
    background-color: var(--bg-white);
    box-shadow: 0 0 0 4px rgba(0, 142, 169, 0.1);
}

textarea.form-control {
    resize: vertical;
    min-height: 140px;
}

.form-control.error {
    border-color: #EF4444;
    background-color: #FEF2F2;
}

.form-error-msg {
    color: #EF4444;
    font-size: 0.8rem;
    font-weight: 500;
    margin-top: 0.25rem;
    display: none;
}

/* Success Modal & Alert */
.alert-success {
    background-color: var(--primary-light);
    color: var(--primary-dark);
    border: 1px solid rgba(0, 142, 169, 0.15);
    padding: 1.25rem 1.75rem;
    border-radius: var(--radius-sm);
    font-weight: 500;
    display: none;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 2rem;
    animation: fadeIn 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.alert-success i {
    font-size: 1.25rem;
}

/* Maps Iframe */
.map-section {
    background-color: var(--bg-white);
}

.map-container {
    width: 100%;
    height: 450px;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.map-container iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* ==========================================================================
   Footer Component
   ========================================================================== */

.footer {
    background-color: #073B2B;
    color: rgba(255, 255, 255, 0.8);
    padding: 5rem 0 2rem;
    font-size: 0.95rem;
}

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

.footer-logo-wrapper {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.footer-logo-wrapper img {
    height: 40px;
    width: 40px;
}

.footer-brand {
    font-weight: 700;
    font-size: 1.15rem;
    color: var(--bg-white);
}

.footer-about p {
    color: rgba(255, 255, 255, 0.65);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.footer-title {
    color: var(--bg-white);
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 1.75rem;
    position: relative;
}

.footer-title::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 0;
    width: 35px;
    height: 3px;
    background-color: var(--secondary);
    border-radius: 2px;
}

.footer-links-list {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.footer-link-item a {
    color: rgba(255, 255, 255, 0.65);
    transition: var(--transition-quick);
}

.footer-link-item a:hover {
    color: var(--secondary);
    padding-left: 5px;
}

.footer-contact-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.footer-contact-item {
    display: flex;
    gap: 0.85rem;
    align-items: flex-start;
}

.footer-contact-item i {
    color: var(--secondary);
    margin-top: 4px;
}

.footer-contact-item span {
    color: rgba(255, 255, 255, 0.65);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-copyright {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.5);
}

.footer-socials {
    display: flex;
    gap: 1rem;
}

.footer-social-link {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.05);
    color: rgba(255, 255, 255, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-quick);
}

.footer-social-link:hover {
    background-color: var(--secondary);
    color: var(--text-dark);
    transform: translateY(-3px);
}

/* ==========================================================================
   Animations & Transitions
   ========================================================================== */

.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ==========================================================================
   Responsive Media Queries
   ========================================================================== */

@media (max-width: 1024px) {
    h1 {
        font-size: 2.5rem;
    }
    
    .mission-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .mission-visual {
        height: 380px;
    }
    
    .footer-top {
        grid-template-columns: repeat(2, 1fr);
        gap: 3rem;
    }
}

@media (max-width: 768px) {
    :root {
        --header-height: 70px;
    }
    
    .navbar {
        background-color: rgba(255, 255, 255, 0.98);
        height: var(--header-height);
        box-shadow: var(--shadow-soft);
    }
    
    .brand-name {
        color: var(--primary);
    }
    
    .hamburger {
        display: block;
    }
    
    .hamburger span {
        background-color: var(--text-dark);
    }
    
    /* Mobile Menu Drawer style */
    .nav-links {
        position: fixed;
        top: var(--header-height);
        left: 0;
        width: 100%;
        height: calc(100vh - var(--header-height));
        background-color: var(--bg-white);
        flex-direction: column;
        gap: 1.5rem;
        padding: 3rem 2rem;
        align-items: center;
        box-shadow: 0 15px 30px rgba(0,0,0,0.1);
        transform: translateY(-110%);
        opacity: 0;
        pointer-events: none;
        transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.4s ease;
        z-index: 999;
    }
    
    .nav-links.active {
        transform: translateY(0);
        opacity: 1;
        pointer-events: auto;
    }
    
    .nav-link {
        color: var(--text-dark);
        font-size: 1.15rem;
        font-weight: 600;
        width: 100%;
        text-align: center;
        padding: 0.75rem 0;
    }
    
    .navbar.scrolled .nav-link {
        color: var(--text-dark);
    }
    
    /* Hamburger Active State */
    .hamburger.active span:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    
    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }
    
    .hamburger.active span:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-description {
        font-size: 1rem;
    }
    
    .focus-grid {
        grid-template-columns: 1fr;
        gap: 1.75rem;
    }
    
    .vision-mission-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .recognition-grid {
        grid-template-columns: 1fr;
        gap: 1.75rem;
    }
    
    .contact-layout {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .gallery-category-title {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .lightbox-nav {
        width: 45px;
        height: 45px;
        font-size: 1.2rem;
    }
    
    .lightbox-prev {
        left: 15px;
    }
    
    .lightbox-next {
        right: 15px;
    }
    
    .lightbox-close {
        top: 20px;
        right: 20px;
        width: 40px;
        height: 40px;
        font-size: 1.75rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 1.25rem;
    }
    
    .section-padding {
        padding: 4rem 0;
    }
    
    .hero-title {
        font-size: 2.15rem;
    }
    
    .hero-cta {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .btn {
        width: 100%;
    }
    
    .footer-top {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
    
    .contact-form-card {
        padding: 2.5rem 1.5rem;
    }
    
    .form-group-row {
        grid-template-columns: 1fr;
        gap: 0;
    }
    
    .map-container {
        height: 300px;
    }
}

/* ==========================================================================
   Program Gallery System Styling
   ========================================================================== */

.banner-subtitle {
    font-size: 1.2rem;
    font-weight: 500;
    color: var(--secondary);
    margin-top: -0.75rem;
    margin-bottom: 1.25rem;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

.program-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(330px, 1fr));
    gap: 2.25rem;
    margin-top: 1.5rem;
}

.program-card {
    background-color: var(--bg-white);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-soft);
    border: 1px solid rgba(0, 0, 0, 0.05);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: var(--transition-smooth);
}

.program-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-hover);
}

.program-card.expanded {
    border-color: var(--primary);
    box-shadow: 0 15px 35px rgba(0, 142, 169, 0.15);
}

.program-cover-wrapper {
    position: relative;
    height: 240px;
    overflow: hidden;
    background-color: #e2e8f0;
    cursor: pointer;
}

.program-cover-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.program-card:hover .program-cover-img {
    transform: scale(1.06);
}

.program-cover-badge {
    position: absolute;
    bottom: 12px;
    right: 12px;
    background-color: rgba(0, 142, 169, 0.9);
    color: var(--bg-white);
    padding: 5px 14px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    gap: 0.4rem;
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}

.program-card-body {
    padding: 1.75rem 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    flex-grow: 1;
}

.program-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-dark);
    line-height: 1.35;
    margin-bottom: 0.25rem;
}

.program-date {
    font-size: 0.9rem;
    color: var(--primary);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.program-date-large {
    font-size: 1rem;
    color: var(--primary);
    font-weight: 600;
    margin-top: 0.4rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-view-gallery {
    width: 100%;
    margin-top: 0.5rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-weight: 600;
    cursor: pointer;
}

/* Centered Program Details Modal Popup */
.program-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(15, 23, 42, 0.85);
    z-index: 90000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    padding: 1.5rem;
}

.program-modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.program-modal-card {
    background-color: var(--bg-white);
    border-radius: var(--radius-md);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.35);
    width: 100%;
    max-width: 960px;
    max-height: 88vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transform: scale(0.92);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    border: 1px solid rgba(0, 0, 0, 0.08);
}

.program-modal-overlay.active .program-modal-card {
    transform: scale(1);
}

.program-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1.5rem;
    padding: 1.75rem 2rem;
    border-bottom: 2px dashed #e2e8f0;
    background-color: var(--bg-white);
    flex-shrink: 0;
}

.modal-header-text h2 {
    font-size: 1.6rem;
    margin-bottom: 0;
    line-height: 1.35;
}

.btn-close-program-modal {
    background-color: var(--bg-light);
    border: 1px solid #cbd5e1;
    color: var(--text-dark);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    transition: var(--transition-quick);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.btn-close-program-modal:hover {
    background-color: #e2e8f0;
    color: var(--primary-dark);
    transform: scale(1.08);
}

.program-modal-body {
    flex: 1;
    overflow-y: auto;
    padding: 2rem;
}


/* Program Sections (Photos & Paper Cuttings) */
.program-section {
    margin-bottom: 2.5rem;
}

.program-section:last-child {
    margin-bottom: 0;
}

.section-subtitle {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary);
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

/* Program Photos Grid */
.photos-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
}

.gallery-photo-item {
    position: relative;
    border-radius: var(--radius-sm);
    overflow: hidden;
    height: 200px;
    background-color: #f1f5f9;
    cursor: pointer;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.gallery-photo-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-smooth);
}

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

.image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 142, 169, 0.75);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition-quick);
    color: var(--bg-white);
    font-size: 1.5rem;
    font-weight: 500;
    text-align: center;
    padding: 1rem;
}

.gallery-photo-item:hover .image-overlay,
.paper-cutting-item:hover .image-overlay {
    opacity: 1;
}

/* Paper Cuttings Section */
.paper-cuttings-section {
    padding-top: 2rem;
    border-top: 2px dashed #e2e8f0;
}

.paper-cuttings-title {
    color: var(--primary-dark);
    background-color: var(--primary-light);
    padding: 0.6rem 1.25rem;
    border-radius: var(--radius-sm);
    display: inline-flex;
    border-left: 4px solid var(--primary);
}

.paper-cuttings-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-top: 1.25rem;
}

.paper-cutting-item {
    background-color: var(--bg-white);
    border: 1px solid #e2e8f0;
    border-radius: var(--radius-sm);
    padding: 0.85rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
    cursor: pointer;
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.paper-cutting-item:hover {
    box-shadow: 0 12px 28px rgba(0, 142, 169, 0.15);
    transform: translateY(-4px);
    border-color: var(--primary);
}

.paper-cutting-frame {
    width: 100%;
    height: 250px;
    background-color: #fafafa;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem;
    border-radius: var(--radius-sm);
}

.paper-cutting-frame img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border: 1px solid #e2e8f0;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
}

/* Professional Fullscreen Image Viewer Modal */
.image-viewer-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.93);
    z-index: 99999;
    display: flex;
    flex-direction: column;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.image-viewer-modal.active {
    opacity: 1;
    pointer-events: auto;
}

/* Header Bar */
.viewer-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem 2rem;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.85), rgba(0, 0, 0, 0));
    z-index: 10;
}

.viewer-header-info {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.viewer-program-title {
    color: #ffffff;
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0;
    line-height: 1.3;
}

.viewer-meta-row {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.viewer-program-date {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.85rem;
    font-weight: 500;
}

.viewer-section-badge {
    font-size: 0.75rem;
    font-weight: 700;
    padding: 3px 12px;
    border-radius: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge-photos {
    background-color: var(--primary);
    color: #ffffff;
}

.badge-paper-cuttings {
    background-color: var(--secondary);
    color: var(--text-dark);
}

.viewer-btn-close {
    background: rgba(255, 255, 255, 0.12);
    border: none;
    color: #ffffff;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    font-size: 1.75rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-quick);
    flex-shrink: 0;
}

.viewer-btn-close:hover {
    background-color: rgba(255, 255, 255, 0.3);
    color: var(--secondary);
    transform: scale(1.1);
}

/* Main Display Area */
.viewer-main-area {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    width: 100%;
    overflow: hidden;
    padding: 0 1rem;
}

.viewer-image-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: 90vw;
    max-height: 72vh;
    user-select: none;
}

#viewer-main-img {
    max-width: 90vw;
    max-height: 72vh;
    object-fit: contain;
    border-radius: var(--radius-sm);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.7);
    cursor: zoom-in;
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.15s ease;
}

#viewer-main-img.zoomed {
    transform: scale(1.6);
    cursor: zoom-out;
}

/* Nav Buttons */
.viewer-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.12);
    border: none;
    color: #ffffff;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    font-size: 1.35rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-quick);
    z-index: 10;
    backdrop-filter: blur(4px);
}

.viewer-nav-btn:hover {
    background-color: var(--primary);
    color: #ffffff;
    transform: translateY(-50%) scale(1.1);
}

.viewer-btn-prev {
    left: 2rem;
}

.viewer-btn-next {
    right: 2rem;
}

/* Bottom Controls Footer */
.viewer-footer {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.6rem;
    padding: 0.75rem 1.5rem 1.5rem 1.5rem;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.85), rgba(0, 0, 0, 0));
    z-index: 10;
}

.viewer-counter {
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 0.5px;
}

.viewer-thumbnails-strip {
    display: flex;
    gap: 0.75rem;
    overflow-x: auto;
    max-width: 85vw;
    padding: 0.35rem 0.5rem;
    scroll-behavior: smooth;
    border-radius: 8px;
}

/* Thumbnail strip scrollbar */
.viewer-thumbnails-strip::-webkit-scrollbar {
    height: 6px;
}
.viewer-thumbnails-strip::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
}
.viewer-thumbnails-strip::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.25);
    border-radius: 4px;
}
.viewer-thumbnails-strip::-webkit-scrollbar-thumb:hover {
    background: var(--primary);
}

.viewer-thumb {
    width: 78px;
    height: 52px;
    border-radius: 6px;
    overflow: hidden;
    opacity: 0.5;
    cursor: pointer;
    border: 2px solid transparent;
    flex-shrink: 0;
    background-color: #111111;
    padding: 0;
    transition: all 0.2s ease;
}

.viewer-thumb:hover {
    opacity: 0.85;
    transform: scale(1.04);
}

.viewer-thumb.active {
    opacity: 1;
    border-color: var(--secondary);
    transform: scale(1.08);
    box-shadow: 0 0 12px rgba(255, 200, 87, 0.7);
}

.viewer-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Responsive Rules for Image Viewer */
@media (max-width: 1024px) {
    .photos-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .photos-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .paper-cuttings-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .program-details-drawer {
        padding: 1.5rem;
    }
    
    .program-details-header {
        flex-direction: column;
        gap: 1rem;
    }
    
    .viewer-header {
        padding: 1rem 1.25rem;
    }
    
    .viewer-program-title {
        font-size: 1rem;
    }
    
    #viewer-main-img {
        max-width: 96vw;
        max-height: 68vh;
    }
    
    .viewer-nav-btn {
        width: 42px;
        height: 42px;
        font-size: 1.1rem;
    }
    
    .viewer-btn-prev {
        left: 0.75rem;
    }
    
    .viewer-btn-next {
        right: 0.75rem;
    }
    
    .viewer-thumb {
        width: 60px;
        height: 44px;
    }
}

@media (max-width: 480px) {
    .photos-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }
    
    .gallery-photo-item {
        height: 140px;
    }
    
    .paper-cuttings-grid {
        grid-template-columns: repeat(1, 1fr);
    }
    
    .paper-cutting-frame {
        height: 220px;
    }
    
    .program-card-body {
        padding: 1.25rem;
    }
    
    .viewer-header {
        padding: 0.85rem 1rem;
    }
    
    .viewer-btn-close {
        width: 36px;
        height: 36px;
        font-size: 1.4rem;
    }
    
    .viewer-thumbnails-strip {
        max-width: 95vw;
    }
}


