

:root {
    
    --acci-blue: #0e3a85; 
    --acci-dark: #0a2a60; 
    --text-color: #333333;
    --bg-light: #f4f6f9;
    --white: #ffffff;

    --font-heading: 'Montserrat', sans-serif;
    --font-body: 'Roboto', sans-serif;

    --container-width: 1280px;
    --header-height: 80px;
}


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

body {
    font-family: var(--font-body); 
    color: var(--text-color);
    background-color: var(--bg-light);
    line-height: 1.6;
    font-size: 16px; 
}

h1, h2, h3, h4, h5, h6, 
.nav-link, 
.btn-primary,
.dropdown-link,
.mini-header {
    font-family: var(--font-heading);
}

h1 { font-weight: 800; letter-spacing: -0.5px; }
h2 { font-weight: 700; letter-spacing: -0.5px; }
h3 { font-weight: 600; }

/* LAYOUT UTILITIES */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 20px;
}

/* HEADER & NAV */
header {
    background-color: var(--white);
    height: var(--header-height);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: var(--container-width);
    margin: 0 auto;
    height: 100%;
    padding: 0 20px;
}

.logo img {
    height: 150px; 
    width: auto;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 600;
    margin-left: 25px;
    font-size: 0.95rem;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: var(--acci-blue);
}

.btn-primary {
    background-color: var(--acci-blue);
    color: var(--white) !important; 
    padding: 10px 20px;
    border-radius: 5px;
    transition: background 0.3s;
}

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

/* --- HERO CAROUSEL STYLES --- */
.hero-container {
    position: relative;
    height: 600px; 
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
}


.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0; 
    transition: opacity 1.5s ease-in-out; 
    z-index: 1;
    /* --- NEW PARALLAX STYLES --- */
    background-attachment: fixed; 
}

.hero-slide.active {
    opacity: 1; /* Visible */
}

/* Blue Tint Overlay */
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(14, 58, 133, 0.85), rgba(14, 58, 133, 0.6));
    z-index: 2;
}

/* The Content */
.hero-content {
    position: relative;
    z-index: 3; /* On top of everything */
    max-width: 800px;
    padding: 20px;
    animation: slideUp 1s ease-out;
}

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

.hero-content h1 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 20px;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.hero-content p {
    font-size: 1.3rem;
    margin-bottom: 30px;
    opacity: 0.9;
}

/* FORMS & CARDS */
form, .business-card {
    background: var(--white);
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    margin-bottom: 20px;
}

input, textarea, select {
    width: 100%;
    padding: 12px;
    margin: 8px 0 20px 0;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
}

input:focus {
    border-color: var(--acci-blue);
    outline: none;
}

button {
    background-color: var(--acci-blue);
    color: var(--white);
    padding: 12px 24px;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    width: 100%;
}

button:hover {
    background-color: var(--acci-dark);
}

/* DIRECTORY GRID */
.directory-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

/* FOOTER */
footer {
    background-color: #222;
    color: #fff;
    text-align: center;
    padding: 40px 0;
    margin-top: 50px;
}

/* --- IMAGE CARD GRID --- */

.image-card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); /* Responsive columns */
    gap: 20px;
    margin-top: 40px;
}

.image-card {
    position: relative;
    height: 350px; /* Fixed height for consistency */
    background-size: cover;
    background-position: center;
    border-radius: 4px; /* Slight rounding */
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between; /* Pushes Title to top, Button to bottom */
    padding: 25px;
    color: var(--white);
    transition: transform 0.3s ease;
    text-decoration: none; /* Remove underline from links */
}

.image-card:hover {
    transform: translateY(-5px); /* Lift effect on hover */
}

/* The Dark Gradient Overlay */
.image-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    /* Gradient */
    background: linear-gradient(to bottom, rgba(0,0,0,0.2), rgba(0,0,0,0.8));
    z-index: 1;
}

.image-card-content {
    position: relative;
    z-index: 2; 
}

.image-card h3 {
    font-size: 1.5rem;
    line-height: 1.3;
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0,0,0,0.8);
    margin-bottom: 10px;
}

.image-card-tag {
    background-color: var(--acci-blue);
    color: white;
    padding: 4px 8px;
    font-size: 0.75rem;
    font-weight: bold;
    text-transform: uppercase;
    display: inline-block;
    margin-bottom: 10px;
}

/* The "Ghost Button" (Learn More) */
.btn-outline {
    position: relative;
    z-index: 2;
    border: 2px solid white;
    background: transparent;
    color: white;
    padding: 8px 20px;
    font-weight: 700;
    text-decoration: none;
    align-self: flex-end;
    border-radius: 4px;
    transition: all 0.3s;
}

.btn-outline:hover {
    background: white;
    color: var(--acci-blue);
}

/* --- VALUES / ABOUT SECTION --- */
.values-section {
    background-color: #0a1f44; 
    color: var(--white);
    padding: 80px 0;
}

.values-header {
    max-width: 800px;
    margin-bottom: 60px;
}

.values-header h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 20px;
}

.values-header p {
    font-size: 1.1rem;
    line-height: 1.6;
    opacity: 0.9;
}

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

.value-item h3 {
    font-size: 1.8rem;
    margin-bottom: 15px;
    font-weight: 600;
}

.value-item p {
    font-size: 1rem;
    line-height: 1.6;
    opacity: 0.85;
}

.value-icon {
    width: 48px;
    height: 48px;
    margin-bottom: 20px;
    display: block;
    fill: none;           
    stroke: #4dabf7;      
    stroke-width: 1.5;    
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* --- IMPACT / HISTORY SLIDER --- */
.impact-section {
    display: flex;
    min-height: 550px; 
    position: relative;
    overflow: hidden;
}

/* Left Side: Text */
.impact-left {
    width: 50%;
    background-color: #253b56; 
    color: white;
    padding: 60px 80px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
}

.impact-header h2 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 40px;
    line-height: 1.2;
}

.impact-year, .impact-text {
    transition: opacity 0.2s ease-in-out;
}

.impact-year {
    font-size: 5rem; 
    font-weight: 300; 
    margin-bottom: 20px;
    display: block;
}

.impact-text {
    font-size: 1.1rem;
    line-height: 1.7;
    opacity: 0.9;
    max-width: 500px;
}

/* Right Side: Image */
.impact-right {
    width: 50%;
    background-size: cover;
    background-position: center;
    position: relative;
    transition: background-image 0.5s ease-in-out;
}

/* The Purple/Red Tint Overlay */
.impact-right::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    /* Gradient from Red/Purple to Transparent/Blue */
    background: linear-gradient(to bottom right, rgba(161, 56, 89, 0.6), rgba(37, 59, 86, 0.6));
    z-index: 1;
}

/* The Center Circle Button */
.impact-nav-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%); 
    width: 60px;
    height: 60px;
    background: white;
    border-radius: 50%;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    transition: transform 0.3s;
    border: none;
}

.impact-nav-btn:hover {
    transform: translate(-50%, -50%) scale(1.1);
}

.impact-nav-icon {
    width: 24px;
    height: 24px;
    stroke: #253b56; 
    stroke-width: 2;
    fill: none;
}

/* Dots Navigation (Bottom Right) */
.impact-dots {
    position: absolute;
    bottom: 30px;
    left: 50px; 
    z-index: 5;
    display: flex;
    gap: 10px;
}

.dot {
    width: 12px;
    height: 12px;
    border: 2px solid white;
    border-radius: 50%;
    cursor: pointer;
    background: transparent;
    transition: background 0.3s;
}

.dot.active {
    background: white;
}

/* Mobile Response: Stack them */
@media (max-width: 768px) {
    .impact-section { flex-direction: column; }
    .impact-left, .impact-right { width: 100%; height: auto; }
    .impact-nav-btn { top: auto; bottom: -30px; left: 50%; }
}

/* --- EVENTS CALENDAR SECTION --- */
.events-section {
    background-color: var(--white);
    padding: 80px 0;
}

.event-row {
    display: flex;
    align-items: center; 
    justify-content: space-between; 
    background: #fff;
    border: 1px solid #eee;
    margin-bottom: 20px;
    border-radius: 8px;
    padding: 20px;
    transition: box-shadow 0.3s;
    gap: 20px; 
}


.event-details {
    flex-grow: 1;
    min-width: 0; 
}


.btn-calendar {
    display: inline-block !important;
    border: 1px solid #0e3a85 !important;
    color: #0e3a85 !important;
    padding: 10px 15px;
    border-radius: 5px;
    background: transparent;
    cursor: pointer;
}
.btn-calendar:hover {
    background: #0e3a85 !important;
    color: white !important;
}


@media (max-width: 768px) {
    .event-row {
        flex-direction: column;
        text-align: center;
        align-items: center;
    }

    .event-date-box {
        margin-right: 0;
        margin-bottom: 15px;
    }
    
    .event-details {
        margin-bottom: 20px;
    }
}

.event-row:hover {
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.event-date-box {
    background-color: #f4f6f9;
    padding: 15px;
    border-radius: 6px;
    text-align: center;
    min-width: 90px;
    margin-right: 30px;
    color: var(--acci-blue);
}

.event-month {
    display: block;
    text-transform: uppercase;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 1px;
}

.event-day {
    display: block;
    font-size: 2rem;
    font-weight: 800;
    line-height: 1;
    margin-top: 5px;
}

.event-details {
    flex-grow: 1;
}

.event-details h3 {
    margin: 0 0 5px 0;
    color: var(--acci-dark);
}

.event-meta {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 8px;
}

.btn-calendar {
    border: 1px solid var(--acci-blue);
    color: var(--acci-blue);
    background: transparent;
    padding: 8px 15px;
    text-decoration: none;
    border-radius: 4px;
    font-size: 0.85rem;
    font-weight: 600;
    transition: all 0.2s;
}

.btn-calendar:hover {
    background: var(--acci-blue);
    color: white;
}

/* --- FULL MONTH CALENDAR --- */
.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    background: var(--acci-blue);
    color: white;
    padding: 15px;
    border-radius: 8px 8px 0 0;
}

.calendar-header a {
    color: white;
    text-decoration: none;
    font-weight: bold;
    padding: 5px 10px;
    border: 1px solid rgba(255,255,255,0.3);
    border-radius: 4px;
}

.calendar-header a:hover {
    background: rgba(255,255,255,0.2);
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr); /* 7 Days of week */
    background: #ddd;
    gap: 1px; /* Creates the border effect */
    border: 1px solid #ddd;
}

.calendar-day-name {
    background: #f4f6f9;
    color: #666;
    font-weight: bold;
    text-align: center;
    padding: 10px;
    font-size: 0.9rem;
}

.calendar-cell {
    background: white;
    min-height: 120px; 
    padding: 10px;
    position: relative;
}

.calendar-cell.empty {
    background: #fafafa;
}

.calendar-cell.today {
    background: #fff9e6; 
}

.day-number {
    font-weight: bold;
    color: #888;
    margin-bottom: 5px;
    display: block;
}


.event-chip {
    display: block;
    background: var(--acci-blue);
    color: white;
    font-size: 0.75rem;
    padding: 4px 6px;
    border-radius: 3px;
    margin-bottom: 4px;
    text-decoration: none;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    transition: opacity 0.2s;
}

.event-chip:hover {
    opacity: 0.8;
}


@media (max-width: 768px) {
    .calendar-cell { min-height: 80px; }
    .event-chip { font-size: 0.7rem; }
}

/* --- MINI AJAX CALENDAR --- */
.calendar-wrapper {
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    overflow: hidden;
    max-width: 800px;
    margin: 0 auto;
}

.mini-header {
    background: var(--acci-blue);
    color: white;
    padding: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.mini-header button {
    background: rgba(255,255,255,0.2);
    border: none;
    color: white;
    padding: 5px 10px;
    cursor: pointer;
    border-radius: 4px;
    font-size: 0.9rem;
    width: auto; /* Override global button width */
}

.mini-header button:hover {
    background: rgba(255,255,255,0.4);
}

.mini-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    text-align: center;
    border-bottom: 1px solid #eee;
}

.mini-day-name {
    background: #f8f9fa;
    padding: 10px 0;
    font-size: 0.8rem;
    font-weight: bold;
    color: #666;
}

.mini-cell {
    padding: 15px 0; 
    position: relative; 
    cursor: default;
    border-right: 1px solid #fafafa;
    border-bottom: 1px solid #fafafa;
}

.mini-cell:hover {
    background-color: #f0f4ff;
}

.mini-cell.today {
    background-color: #fff9e6;
    font-weight: bold;
}

/* THE EVENT INDICATOR (The Dot) */
.event-dot {
    width: 6px;
    height: 6px;
    background-color: #dc3545; 
    border-radius: 50%;
    margin: 4px auto 0 auto; 
    display: block;
}

/* THE TOOLTIP (Hidden by default) */
.mini-tooltip {
    display: none; /* Hidden */
    position: absolute;
    bottom: 100%; 
    left: 50%;
    transform: translateX(-50%);
    background: #333;
    color: white;
    padding: 10px;
    border-radius: 5px;
    width: 200px;
    z-index: 100;
    text-align: left;
    font-size: 0.8rem;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    pointer-events: none; /* Let clicks pass through */
}

/* Little triangle arrow for tooltip */
.mini-tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    margin-left: -5px;
    border-width: 5px;
    border-style: solid;
    border-color: #333 transparent transparent transparent;
}

/* Show Tooltip on Hover */
.mini-cell:hover .mini-tooltip {
    display: block;
}

.tooltip-item {
    margin-bottom: 4px;
    border-bottom: 1px solid #555;
    padding-bottom: 4px;
}
.tooltip-item:last-child { border: none; margin: 0; }

/* --- DARK EVENTS SECTION --- */
.events-dark-section {
    background: linear-gradient(rgba(10, 31, 68, 0.95), rgba(10, 31, 68, 0.9)), url('../images/hero/slide3.jpg');
    background-size: cover;
    background-position: center;
    color: white;
    padding: 80px 0;
}

.events-split {
    display: flex;
    gap: 60px;
    align-items: flex-start;
}

/* LEFT SIDE: Calendar Styling */
.calendar-wrapper-dark {
    flex: 1;
    max-width: 500px;
    background: transparent; 
}

.calendar-top-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 20px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    padding-bottom: 15px;
}

.calendar-top-row h2 {
    font-size: 2.2rem;
    font-weight: 500;
    margin: 0;
}

.view-all-link {
    color: #ffffff; 
    text-decoration: underline;
    font-size: 0.9rem;
}

/* The Mini Grid (Dark Mode overrides) */
.dark-cal-header {
    display: flex;
    justify-content: center; 
    gap: 20px;
    align-items: center;
    margin-bottom: 15px;
}

.dark-cal-header button {
    background: transparent;
    border: 1px solid rgba(255,255,255,0.3);
    color: white;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.dark-cal-header button:hover {
    background: #ffffff;
    border-color: #ffffff;
    color: #111;
}

.mini-grid-dark {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 4px; 
}

.mini-day-name-dark {
    color: rgba(255,255,255,0.7);
    text-align: center;
    font-size: 0.8rem;
    padding-bottom: 10px;
    text-transform: uppercase;
}

.mini-cell-dark {
    background: rgba(255,255,255,0.1); 
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 0.9rem;
    border-radius: 2px;
    position: relative;
}

.mini-cell-dark.empty { background: transparent; }

.mini-cell-dark.today {
    background: #5a7090; 
    border: 1px solid rgba(255,255,255,0.3);
}

.event-dot-dark {
    width: 5px; height: 5px;
    background: #f0c05a;
    border-radius: 50%;
    position: absolute;
    bottom: 5px;
}

/* RIGHT SIDE: Upcoming List */
.events-list-wrapper {
    flex: 1;
    padding-left: 40px;
    border-left: 1px solid rgba(255,255,255,0.1);
}

.upcoming-item {
    margin-bottom: 40px;
}

.upcoming-meta {
    color: rgba(255,255,255,0.7);
    font-size: 0.9rem;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.upcoming-title {
    color: #34a0ff; 
    font-size: 1.4rem;
    font-weight: 400;
    line-height: 1.3;
}

/* Mobile */
@media (max-width: 900px) {
    .events-split { flex-direction: column; }
    .events-list-wrapper { padding-left: 0; border-left: none; border-top: 1px solid rgba(255,255,255,0.1); padding-top: 40px; }
}

/* Show Tooltip on Hover for Dark Mode */
.mini-cell-dark:hover .mini-tooltip {
    display: block;
    min-width: 150px;
    background: white; 
    color: #111;       
    z-index: 1000;
}

/* Optional: Add a pointer cursor */
.mini-cell-dark {
    cursor: pointer;
}

/* Ensure the dot is visible */
.event-dot-dark {
    z-index: 1; 
    pointer-events: none; 
}

/* --- NAVIGATION DROPDOWNS --- */

/* Reset List Styles */
.nav-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    align-items: center;
}

/* Top Level Items */
.nav-item {
    position: relative; 
    padding: 15px 0;    
    margin-left: 15px;
}

.nav-link {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 600;
    font-size: 0.85rem;
    transition: color 0.3s;
    padding-bottom: 5px; 
}

.nav-link:hover, .nav-item:hover .nav-link {
    color: var(--acci-blue);
    border-bottom: 2px solid #f0c05a; 
}

/* The Dropdown Box (Hidden by default) */
.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%; 
    left: 0;
    background-color: white;
    min-width: 220px; 
    box-shadow: 0 8px 16px rgba(0,0,0,0.1);
    border-top: 3px solid var(--acci-blue);
    list-style: none;
    padding: 10px 0;
    z-index: 1000; 
    border-radius: 0 0 4px 4px;
}

/* Show on Hover */
.nav-item:hover .dropdown-menu {
    display: block;
    animation: fadeIn 0.3s ease;
}

/* Dropdown Items */
.dropdown-item {
    padding: 0;
}

.dropdown-link {
    display: block;
    padding: 10px 20px;
    color: #555;
    text-decoration: none;
    font-size: 0.9rem;
    transition: background 0.2s;
    border-bottom: 1px solid #f9f9f9;
}

.dropdown-link:hover {
    background-color: #f4f6f9;
    color: var(--acci-blue);
    padding-left: 25px; 
}

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

/* Special Button Style for Admin/Profile inside the list */
.nav-btn {
    padding: 8px 12px !important;
    border-radius: 4px;
    margin-left: 15px;
    font-size: 0,85rem;
}
/* --- REGISTRATION UI THEME (Floating Inputs) --- */

/* 1. The Dark Header */
.reg-header-section {
    background-color: #1a2b4a; 
    padding: 60px 0;
    text-align: center;
    border-bottom: 5px solid #ffffff; 
}

.reg-header-title {
    color: #ffffff; 
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 3rem;
    margin: 0;
    text-transform: capitalize; 
    letter-spacing: -1px;
}

/* 2. The Form Body Background */
.reg-body-section {
    background-color: #f0f2f5; 
    padding: 60px 0;
    min-height: 80vh;
}

/* 3. The "Floating" Input Fields */
.reg-label {
    display: block;
    margin-bottom: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    color: #444;
    margin-left: 2px;
}

.reg-input {
    width: 100%;
    border: none; 
    background: white;
    padding: 18px 20px; 
    font-size: 1rem;
    color: #333;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08); 
    border-radius: 4px;
    margin-bottom: 30px; 
    transition: all 0.3s ease;
}

.reg-input:focus {
    outline: none;
    box-shadow: 0 4px 12px rgba(14, 58, 133, 0.15); 
    transform: translateY(-1px);
}

/* 4. The Submit Button */
.reg-btn {
    background-color: #2b62c2; 
    color: white;
    font-weight: 700;
    text-transform: uppercase;
    padding: 16px 60px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(43, 98, 194, 0.4);
    font-size: 1rem;
    letter-spacing: 1px;
    display: block;
    margin: 40px auto 0 auto; 
    transition: transform 0.2s, background 0.2s;
}

.reg-btn:hover {
    transform: translateY(-2px);
    background-color: #204d9c;
}

/* --- LOGIN PAGE SPLIT THEME --- */

/* 1. Header Area */
.login-page-header {
    background-color: #1a2b4a; 
    padding: 50px 0;
    margin-bottom: 50px;
    border-bottom: 4px solid #ffffff; 
}

.login-page-title {
    color: #ffffff; 
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 2.5rem;
    margin: 0;
}

.login-breadcrumb {
    color: rgba(255,255,255,0.6);
    font-size: 0.9rem;
    margin-top: 5px;
    text-decoration: none;
}

/* 2. The Split Card Container */
.login-card {
    display: flex;
    max-width: 900px;
    margin: 0 auto 80px auto; 
    background: white;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    overflow: hidden; 
    min-height: 500px;
}

/* 3. Left Side (Form) */
.login-left {
    flex: 1; /* Takes up 50% */
    padding: 50px;
    background-color: white;
}

.login-left h2 {
    color: #333;
    font-size: 2rem;
    margin-bottom: 10px;
}

.login-subtext {
    color: #666;
    margin-bottom: 30px;
    font-size: 0.95rem;
}

/* .reg-input styles */
.login-input {
    width: 100%;
    background: #f4f6f9; 
    border: 1px solid #e1e1e1;
    padding: 15px;
    border-radius: 4px;
    margin-bottom: 20px;
    font-size: 1rem;
}

.login-btn {
    background-color: #2b62c2;
    color: white;
    font-weight: 700;
    padding: 12px 30px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
    margin-top: 10px;
    width: 100px;
    transition: background 0.2s;
}

.login-btn:hover { background-color: #1a4a9c; }

/* 4. Right Side (Info / Join) */
.login-right {
    flex: 1; 
    background-color: #0e1b33; 
    padding: 50px;
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative; 
}

/* Optional: Add Logo Overlay effect */
.login-right::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: url('../images/logo2.png') no-repeat center;
    background-size: 300px;
    opacity: 0.05; 
    pointer-events: none;
}

.login-right-text {
    line-height: 1.8;
    color: rgba(255,255,255,0.8);
    margin-bottom: 30px;
    position: relative;
    z-index: 2;
}

.join-btn {
    background-color: #2b62c2;
    color: white;
    text-decoration: none;
    font-weight: 700;
    padding: 15px 30px;
    border-radius: 4px;
    display: inline-block;
    text-align: center;
    width: fit-content;
    position: relative;
    z-index: 2;
}

.join-btn:hover { background-color: #4dabf7; }

/* Mobile Stack */
@media (max-width: 768px) {
    .login-card { flex-direction: column; margin: 20px; }
    .login-right { padding: 40px 20px; }
}

/* --- REGISTRATION CHECKBOX FIXES --- */

/* The Container (Looks like a big input field) */
.reg-checkbox-container {
    background: white;
    padding: 20px;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08); 
    margin-bottom: 30px;
    border: none;
}

/* The Grid Layout */
.checkbox-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); 
    gap: 12px 20px; 
}

/* Individual Item Styling */
.checkbox-item {
    display: flex;
    align-items: center; 
    font-size: 0.95rem;
    color: #555;
    cursor: pointer;
    transition: color 0.2s;
}

.checkbox-item:hover {
    color: var(--acci-blue);
}

/* The Actual Checkbox Box */
.checkbox-item input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin-right: 10px;
    accent-color: var(--acci-blue); 
    cursor: pointer;
}

/* Fix for Select Dropdown alignment */
select.reg-input {
    appearance: none; /* Removes default ugly arrow */
    background-image: url("data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22292.4%22%20height%3D%22292.4%22%3E%3Cpath%20fill%3D%22%23333%22%20d%3D%22M287%2069.4a17.6%2017.6%200%200%200-13-5.4H18.4c-5%200-9.3%201.8-12.9%205.4A17.6%2017.6%200%200%200%200%2082.2c0%205%201.8%209.3%205.4%2012.9l128%20127.9c3.6%203.6%207.8%205.4%2012.8%205.4s9.2-1.8%2012.8-5.4L287%2095c3.5-3.5%205.4-7.8%205.4-12.8%200-5-1.9-9.2-5.5-12.8z%22%2F%3E%3C%2Fsvg%3E");
    background-repeat: no-repeat;
    background-position: right 20px center;
    background-size: 10px;
    cursor: pointer;
}

/* --- HISTORY TIMELINE THEME --- */

.history-intro {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 60px auto;
    font-size: 1.2rem;
    line-height: 1.8;
    color: #555;
    font-family: 'Times New Roman', serif; 
}

.history-timeline {
    position: relative;
    padding: 20px 0;
}

/* The Vertical Line */
.history-timeline::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 4px;
    background: #e0e0e0;
    margin-left: -2px;
}

.timeline-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 60px;
    position: relative;
}

/* Clear the middle for the line */
.timeline-row::after {
    content: ''; 
    display: table; 
    clear: both; 
}

/* The "Dot" on the line */
.timeline-date {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    background: var(--acci-blue);
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    border: 4px solid white;
    box-shadow: 0 0 0 4px #e0e0e0;
    z-index: 2;
}

.timeline-content {
    width: 45%; /* Less than 50% to leave room for line */
    background: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    position: relative;
}

/* Right Side (Default) */
.timeline-row .timeline-content {
    margin-left: auto; 
}

/* Left Side (Reverse) */
.timeline-row.reverse .timeline-content {
    margin-left: 0;
    margin-right: auto;
}

/* Arrows pointing to the line */
.timeline-content::before {
    content: " ";
    position: absolute;
    top: 20px;
    right: 100%; 
    border-width: 10px;
    border-style: solid;
    border-color: transparent white transparent transparent;
}

.timeline-row.reverse .timeline-content::before {
    right: auto; 
    left: 100%;
    border-color: transparent transparent transparent white;
}

/* Images */
.history-img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 4px;
    margin-bottom: 20px;
    filter: sepia(0.3); 
    transition: filter 0.3s;
}

.history-img:hover {
    filter: sepia(0); /* Full color on hover */
}

/* Typography */
.timeline-content h3 {
    color: var(--acci-blue);
    margin-bottom: 10px;
    font-size: 1.5rem;
}

/* Mobile: Stack everything */
@media (max-width: 768px) {
    .history-timeline::before { left: 20px; } 
    .timeline-date { left: 20px; transform: none; }
    .timeline-content { width: 100%; margin-left: 50px !important; }
    .timeline-content::before { display: none; }
}

/* --- ADMIN TABLE BUTTONS --- */
.admin-btn {
    width: auto !important; 
    display: inline-block;
    padding: 6px 12px;
    font-size: 0.8rem;
    font-weight: 700;
    border-radius: 4px;
    border: none;
    cursor: pointer;
    text-decoration: none;
    margin: 0 2px;
    box-shadow: none !important; 
    transition: opacity 0.2s;
}

.admin-btn:hover {
    opacity: 0.8;
    transform: none; 
}

/* Colors */
.btn-gold {
    background-color: #f0c05a;
    color: #111;
}

.btn-red {
    background-color: #dc3545;
    color: white;
}
/* --- SITE FOOTER --- */
.footer-section {
    background-color: #1a2b4a; 
    color: white;
    padding: 60px 0 0 0;
    font-size: 0.9rem;
}

/* Fix 1: Horizontal Layout and Spacing */
.footer-grid {
    display: grid;
    /* Force columns open: 350px for logo/contact, then two flexible columns */
    grid-template-columns: 350px 1fr 1fr;
    gap: 40px;
    padding-bottom: 30px;
    align-items: flex-start; 
}

/* Fix 2: Logo and Contact Column */
.footer-logo-col img {
    height: 100px; /* Size: 100px */
    filter: none !important; 
    width: auto;
    margin-bottom: 5px; 
}

.footer-logo-col h3 {
    color: white; 
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 10px;
}

/* Fix 3: Vertical Spacing Cleanup */
.footer-logo-col p {
    margin-bottom: 5px; 
    opacity: 0.9;
    line-height: 1.4;
}

/* Fix 4: Quick Links and List Spacing */
.footer-links h3 {
    color: white;
    font-size: 1.1rem;
    margin-bottom: 15px; 
    font-weight: 600;
}

.footer-links ul {
    list-style: none !important; 
    padding-left: 0; 
    margin: 0; 
}

.footer-links a {
    padding: 3px 0; 
    color: rgba(255, 255, 255, 0.7);
    transition: color 0.2s;
}

/* Fix 5: Social Icon Alignment and Size */
.social-links {
    display: flex;
    align-items: center; 
    gap: 15px; 
    margin-top: 15px; 
}

.social-icon {
    width: 24px;
    height: 24px;
    fill: white;
    opacity: 0.8;
    transition: opacity 0.2s;
}

/* Copyright Bar */
.copyright-bar {
    background-color: #112240;
    padding: 20px 0;
    text-align: center;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.5);
}

@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

/* --- PARTNER SCROLL SECTION --- */
.partners-section {
    padding: 40px 0;
    overflow: hidden; /* Crucial for hiding parts of the sliding bar */
    background: white;
    border-top: 1px solid #eee;
}

.partners-section h2 {
    text-align: center;
    margin-bottom: 30px;
    color: var(--acci-dark);
}

.partners-slider-container {
    display: flex;
    overflow: hidden;
    white-space: nowrap; 
    margin: 20px 0;
}

.partners-row {
    display: flex;
    animation-timing-function: linear;
    animation-iteration-count: infinite;
    gap: 50px; /* Space between logos */
    padding-right: 50px; /* Gap between the end of one loop and start of next */
}

/* Define the sliding animations */
@keyframes slide-left {
    from { transform: translateX(0); }
    to { transform: translateX(-100%); }
}

@keyframes slide-right {
    from { transform: translateX(-100%); }
    to { transform: translateX(0); }
}

/* Apply animations to the rows */
.partners-row.gov {
    animation-name: slide-left;
    animation-duration: 45s; 
}

.partners-row.private {
    animation-name: slide-right;
    animation-duration: 45s; 
}

.partner-logo {
    display: inline-block;
    flex-shrink: 0;
    padding: 0 25px; 
    transition: opacity 0.3s;
}

.partner-logo img {
    height: 90px; /* Fixed height for consistency */
    width: auto;
    object-fit: contain;
    filter: grayscale(100%);
    opacity: 0.6;
}

.partner-logo img:hover {
    filter: none;
    opacity: 1;
}

/* Add a responsive break for the content on mobile */
@media (max-width: 768px) {
    .partners-section { padding: 20px 0; }
    .partner-logo img { height: 70px; }
}

/* --- SCROLL REVEAL EFFECT --- */

/* 1. Initial State: Hidden and slightly offset down */
.reveal-item {
    opacity: 0;
    transform: translateY(30px);
    /* Remove transition property from here */
}

/* 2. Active State: Fully visible and in place, WITH transition */
.reveal-item.active {
    opacity: 1;
    transform: translateY(0);
    /* Add transition property here to ensure it only fires when 'active' is added */
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

/* NEW CLASS: Force an immediate, non-animated reveal for the first element below the hero */
.reveal-item.immediate-reveal {
    opacity: 1;
    transform: translateY(0);
    transition: none; /* No transition, instant reveal */
}



footer-section {
    background-color: #333; /* Example dark background */
    color: white;
}

.footer-content-wrapper {
    padding: 30px 20px 20px 20px;
    max-width: 1280px; /* Optional: Constrains container width */
    margin: 0 auto; /* Centers container if max-width is set */
}

.footer-content {
    display: flex;
    justify-content: space-between; /* Adjusted from flex-start to distribute space better */
    gap: 40px;
}

/* Default Column Styles (Desktop Behavior) */
.footer-col {
    /* These styles approximate your original layout basis and min-widths */
    text-align: left;
    min-width: 150px;
    /* We let flexbox distribute space */
}

.footer-col:nth-child(2) { flex-basis: 25%; } /* Links column */
.footer-col:nth-child(3) { flex-basis: 35%; } /* Contact column */
.footer-col:nth-child(4) { flex-basis: 30%; } /* Logo column */


.footer-col h2 {
    font-family: var(--font-heading); /* Assuming a CSS variable for font */
    font-size: 2rem;
    color: white;
    margin-bottom: 15px;
    font-weight: 600;
}

.footer-col ul {
    list-style: none;
    padding-left: 0;
    font-size: 1.1rem;
    line-height: 1.8;
}

.footer-col a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-col a:hover {
    color: white;
}

.footer-col p {
    font-size: 1.1rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 10px;
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-links img {
    width: 24px;
    height: 24px;
}

.footer-logo {
    height: 100px;
    width: auto;
    margin-bottom: 5px;
    margin-top: 20px;
}

/* Copyright Bar Styles */
.copyright-bar {
    text-align: center;
    padding: 20px 20px;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
}

.copyright-bar hr {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin: 0 auto 20px auto;
    max-width: 1280px;
}

.copyright-bar p {
    font-size: 0.8rem;
    color: #888;
    margin-top: 5px;
}

/* --- MOBILE AND TABLET RESPONSIVE STYLES --- */
/* This media query targets screens up to 768px width */
@media (max-width: 768px) {
    .footer-content {
        /* This is the key change: items will now stack vertically */
        flex-direction: column;
        gap: 30px; /* Adjust vertical spacing between stacked columns */
    }

    .footer-col,
    .footer-col:nth-child(2),
    .footer-col:nth-child(3),
    .footer-col:nth-child(4) {
        /* Reset flex basis when stacked to take full width */
        flex-basis: auto;
        min-width: unset;
        margin-left: 0 !important; /* Removes the original auto-margin hack */
    }

    .footer-col h2,
    .footer-col p,
    .footer-col ul {
        text-align: left; /* Center-align text on mobile/tablet */
    }

    .footer-logo {
        /* Center the logo when stacked */
        display: block;
        margin: 0 auto;
        margin-top: 20px;
    }
    
    .social-links {
        /* Center social icons using margin auto on the container */
        justify-content: center;
    }
}


@media screen and (max-width: 768px) {
    .hero-content h1 {
        /* Smaller font size for tablets and mobiles */
        font-size: 2rem; 
    }

    .hero-content p {
        /* Slightly smaller paragraph text */
        font-size: 1rem;
    }

    /* Stack buttons vertically instead of side-by-side */
    .hero-content div > a {
        display: block !important; /* Override inline-block */
        width: 80% !important; /* Make buttons take up most of the width */
        margin: 10px auto !important; /* Center the buttons with vertical spacing */
        text-align: center;
    }
}

/* Targets screens UP TO 480px wide (standard mobile phone views) */
@media screen and (max-width: 480px) {
    .hero-content h1 {
        /* Even smaller font size for small phones */
        font-size: 1.5rem;
    }
    
    .hero-content p {
        /* Smallest paragraph text for small phones */
        font-size: 0.9rem;
    }
}