/* ============================================================
   Elpis Counselling Centre - Main Stylesheet
   Color Theory: Complementary Pair (Teal/Blue + Coral)
   Palette: #3F5195 (Deep Blue) - primary, #4FA08A (Teal) - secondary
            #E76F51 (Coral) - complementary accent, #FAF8F2 (Cream),
            #EAF4F1 (Pale Teal), #263447 (Dark Text),
            #D7DDD9 (Muted/Border)
   ============================================================ */

/* ----- Reset & Base ----- */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    color: #263447;
    background: #FAF8F2;
    line-height: 1.7;
    overflow-x: hidden;
}

a {
    color: #4FA08A;
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #3F5195;
}

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

ul {
    list-style: none;
}

/* ----- Typography ----- */
h1,
h2,
h3,
h4,
h5,
h6 {
    color: #3F5195;
    line-height: 1.3;
    font-weight: 600;
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
}

h3 {
    font-size: 1.5rem;
}

h4 {
    font-size: 1.25rem;
}

h5 {
    font-size: 1.1rem;
}

h6 {
    font-size: 1rem;
}

.section-subtitle {
    color: #4FA08A;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 0.5rem;
}

/* ----- Container ----- */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* ----- Buttons ----- */
.btn {
    display: inline-block;
    padding: 0.8rem 2rem;
    border-radius: 50px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    text-align: center;
    line-height: 1.4;
}

.btn-primary {
    background: #4FA08A;
    color: #fff;
}

.btn-primary:hover {
    background: #E76F51;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(231, 111, 81, 0.35);
}

.btn-secondary {
    background: transparent;
    color: #3F5195;
    border: 2px solid #3F5195;
}

.btn-secondary:hover {
    background: #3F5195;
    color: #fff;
    transform: translateY(-2px);
}

.btn-accent {
    background: #E76F51;
    color: #263447;
}

.btn-accent:hover {
    background: #c2603f;
    color: #263447;
    transform: translateY(-2px);
}

.btn-sm {
    padding: 0.5rem 1.2rem;
    font-size: 0.85rem;
}

.btn-danger {
    background: #dc3545;
    color: #fff;
}

.btn-danger:hover {
    background: #c82333;
    color: #fff;
    transform: translateY(-2px);
}

.btn-approve {
    background: #4FA08A;
    color: #fff;
}

.btn-approve:hover {
    background: #3F5195;
    color: #fff;
    transform: translateY(-2px);
}

.btn-block {
    width: 100%;
}

/* ----- Navigation ----- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: #3F5195;
    padding: 0.8rem 0;
    transition: all 0.3s ease;
}

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

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    color: #fff;
    font-size: 0.95rem;
    font-weight: 700;
}

.navbar-brand:hover {
    color: #fff;
}

.navbar-brand img {
    height: 40px;
    width: auto;
    border-radius: 5px;
}

.navbar-brand span {
    color: #E76F51;
}

.navbar-brand span:hover {
    color: #E76F51;
}

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

.nav-links a {
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.85rem;
    font-weight: 500;
    padding: 0.4rem 0;
    position: relative;
    transition: color 0.3s ease;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: #E76F51;
    transition: width 0.3s ease;
}

.nav-links a:hover,
.nav-links a.active {
    color: #E76F51;
}

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

.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.nav-toggle span {
    display: block;
    width: 25px;
    height: 2px;
    background: #fff;
    margin: 5px 0;
    transition: all 0.3s ease;
    border-radius: 2px;
}

.nav-toggle span.active:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.nav-toggle span.active:nth-child(2) {
    opacity: 0;
}

.nav-toggle span.active:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* ----- Hero Section ----- */
.hero {
    background: linear-gradient(135deg, #3F5195 0%, #2a3a6e 100%);
    min-height: 90vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding-top: 80px;
}

.hero::before {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 120px;
    background: #FAF8F2;
    clip-path: ellipse(80% 100% at 50% 100%);
}

.hero .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-content h1 {
    color: #fff;
    font-size: 3rem;
    margin-bottom: 1rem;
}

.hero-content h1 span {
    color: #E76F51;
}

.hero-content p {
    color: rgba(255, 255, 255, 0.85);
    font-size: 1.1rem;
    margin-bottom: 2rem;
    line-height: 1.8;
}

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

.hero-image {
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-image img {
    max-height: 500px;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
}

/* ----- Wave Divider ----- */
.wave-divider {
    position: relative;
    height: 80px;
    background: #FAF8F2;
}

.wave-divider svg {
    position: absolute;
    bottom: 0;
    width: 100%;
    height: 80px;
}

/* ----- Sections ----- */
.section {
    padding: 5rem 0;
}

.section-dark {
    background: #3F5195;
    color: #fff;
}

.section-dark h2,
.section-dark h3,
.section-dark .section-title {
    color: #fff;
}

.section-light {
    background: #EAF4F1;
}

.section-white {
    background: #fff;
}

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 3rem;
}

.section-header p {
    color: #666;
    font-size: 1.05rem;
    margin-top: 0.8rem;
}

.section-header .section-subtitle {
    color: #4FA08A;
}

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

.service-card {
    background: #fff;
    border-radius: 15px;
    padding: 2rem;
    transition: all 0.3s ease;
    border: 1px solid #D7DDD9;
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #4FA08A, #E76F51);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

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

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 40px rgba(63, 81, 149, 0.1);
    border-color: #4FA08A;
}

.service-icon {
    width: 55px;
    height: 55px;
    background: #EAF4F1;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.2rem;
    font-size: 1.5rem;
    color: #4FA08A;
}

.service-card h3 {
    font-size: 1.1rem;
    margin-bottom: 0.8rem;
    color: #3F5195;
}

.service-card p {
    color: #666;
    font-size: 0.9rem;
    line-height: 1.6;
}

/* ----- Articles Grid ----- */
.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 2rem;
}

.article-card {
    background: #fff;
    border-radius: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid #D7DDD9;
}

.article-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 40px rgba(63, 81, 149, 0.1);
}

.article-card-image {
    height: 200px;
    background: #EAF4F1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: #4FA08A;
    overflow: hidden;
}

.article-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.article-card-body {
    padding: 1.5rem;
}

.article-card-body .meta {
    font-size: 0.8rem;
    color: #999;
    margin-bottom: 0.8rem;
}

.article-card-body h3 {
    font-size: 1.15rem;
    margin-bottom: 0.8rem;
}

.article-card-body h3 a {
    color: #3F5195;
}

.article-card-body h3 a:hover {
    color: #4FA08A;
}

.article-card-body p {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

/* ----- Events Grid ----- */
.events-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
}

.event-card {
    background: #fff;
    border-radius: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid #D7DDD9;
    display: flex;
    flex-direction: column;
}

.event-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 40px rgba(63, 81, 149, 0.1);
}

.event-card-header {
    background: #EAF4F1;
    padding: 2rem;
    text-align: center;
    position: relative;
}

.event-card-header .date {
    font-size: 0.85rem;
    color: #4FA08A;
    font-weight: 600;
}

.event-card-header h3 {
    margin-top: 0.5rem;
    color: #3F5195;
}

.event-card-body {
    padding: 1.5rem;
    flex: 1;
}

.event-card-body p {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.event-card-footer {
    padding: 1rem 1.5rem;
    border-top: 1px solid #D7DDD9;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.event-price {
    font-size: 1.2rem;
    font-weight: 700;
    color: #3F5195;
}

.event-price.free {
    color: #4FA08A;
}

/* ----- Testimonials ----- */
.testimonials-section {
    background: #EAF4F1;
    color: #263447;
}

.testimonials-section .section-header h2 {
    color: #3F5195;
}

.testimonials-section .section-header p {
    color: #666;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
}

.testimonial-card {
    background: #fff;
    border-radius: 15px;
    padding: 2rem;
    border: 1px solid #D7DDD9;
    box-shadow: 0 5px 25px rgba(63, 81, 149, 0.06);
    transition: all 0.3s ease;
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 35px rgba(63, 81, 149, 0.12);
    border-color: #4FA08A;
}

.testimonial-stars {
    color: #E76F51;
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

.testimonial-content {
    font-style: italic;
    color: #555;
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 1.2rem;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.testimonial-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: #4FA08A;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: #fff;
    font-weight: 700;
}

.testimonial-author h4 {
    color: #3F5195;
    font-size: 1rem;
}

.testimonial-author span {
    color: #999;
    font-size: 0.85rem;
}

/* ----- Contact / Booking Forms ----- */
.form-section {
    background: #fff;
    border-radius: 15px;
    padding: 3rem;
    box-shadow: 0 5px 30px rgba(63, 81, 149, 0.08);
}

.form-group {
    margin-bottom: 1.2rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.4rem;
    font-weight: 600;
    font-size: 0.9rem;
    color: #3F5195;
}

.form-control {
    width: 100%;
    padding: 0.8rem 1rem;
    border: 2px solid #D7DDD9;
    border-radius: 10px;
    font-size: 0.95rem;
    font-family: inherit;
    transition: border-color 0.3s ease;
    background: #FAF8F2;
}

.form-control:focus {
    outline: none;
    border-color: #4FA08A;
    background: #fff;
}

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

select.form-control {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%233F5195' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 2.5rem;
}

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

/* ----- Split Layouts (Booking/Contact/About) ----- */
.split-layout {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 3rem;
    align-items: start;
}

.split-layout-about {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.split-contact-layout {
    display: grid;
    grid-template-columns: 1fr 1px 1.5fr;
    gap: 3rem;
    align-items: start;
}

.vertical-divider {
    background: #D7DDD9;
    height: 100%;
    min-height: 400px;
    width: 1px;
    display: block;
}

/* ----- Split Layouts with Form-first ordering (mobile) ----- */
.split-stack {
    display: grid;
    grid-template-columns: 1fr 1px 1.5fr;
    gap: 3rem;
    align-items: start;
    grid-template-areas: "info divider form";
}

.split-stack .split-info {
    grid-area: info;
}

.split-stack .split-divider {
    grid-area: divider;
}

.split-stack .split-form {
    grid-area: form;
}

.split-duo {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 3rem;
    align-items: start;
    grid-template-areas: "info form";
}

.split-duo .split-info {
    grid-area: info;
}

.split-duo .split-form {
    grid-area: form;
}

/* ----- Map Section ----- */
.map-container {
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 30px rgba(63, 81, 149, 0.08);
}

.map-container iframe {
    width: 100%;
    height: 400px;
    border: none;
    display: block;
}

/* ----- Info Cards (Contact) ----- */
.info-card {
    background: #fff;
    border-radius: 15px;
    padding: 2rem;
    border: 1px solid #D7DDD9;
    transition: transform 0.3s ease;
}

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

.info-card-icon {
    width: 50px;
    height: 50px;
    background: #EAF4F1;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #4FA08A;
    font-size: 1.3rem;
    margin-bottom: 1rem;
}

.info-card h4 {
    margin-bottom: 0.5rem;
    color: #3F5195;
}

.info-card p {
    color: #666;
    font-size: 0.9rem;
}

/* ----- About Page ----- */
.about-hero {
    background: linear-gradient(135deg, #3F5195, #2a3a6e);
    padding: 8rem 0 4rem;
    color: #fff;
}

.about-hero h1 {
    color: #fff;
}

.about-hero p {
    color: rgba(255, 255, 255, 0.85);
}

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

.value-card {
    text-align: center;
    padding: 2rem;
}

.value-icon {
    width: 70px;
    height: 70px;
    background: #EAF4F1;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    font-size: 1.8rem;
    color: #4FA08A;
}

.value-card h3 {
    margin-bottom: 0.8rem;
    color: #3F5195;
}

.value-card p {
    color: #666;
    font-size: 0.9rem;
}

/* ----- Page Banner (inner pages) ----- */
.page-banner {
    background: linear-gradient(135deg, #3F5195, #2a3a6e);
    padding: 8rem 0 4rem;
    text-align: center;
    position: relative;
}

.page-banner h1 {
    color: #fff;
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.page-banner p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.1rem;
}

.page-banner::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 60px;
    background: #FAF8F2;
    clip-path: ellipse(70% 100% at 50% 100%);
}

/* ----- Footer ----- */
.footer {
    background: #263447;
    color: rgba(255, 255, 255, 0.7);
    padding: 4rem 0 0;
}

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

.footer-about h3 {
    color: #fff;
    font-size: 1.3rem;
    margin-bottom: 1rem;
}

.footer-about p {
    font-size: 0.9rem;
    line-height: 1.7;
    margin-bottom: 1rem;
}

.footer h4 {
    color: #fff;
    font-size: 1rem;
    margin-bottom: 1.2rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-links li {
    margin-bottom: 0.6rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #E76F51;
}

.footer-contact li {
    display: flex;
    gap: 0.8rem;
    margin-bottom: 0.8rem;
    font-size: 0.9rem;
}

.footer-contact .icon {
    color: #4FA08A;
    flex-shrink: 0;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1.5rem 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    font-size: 0.85rem;
}

.footer-designed {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: 1rem 0 2rem;
    text-align: center;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.55);
}

.footer-designed a {
    color: #E76F51;
    font-weight: 600;
    transition: color 0.3s ease;
}

.footer-designed a:hover {
    color: #4FA08A;
    text-decoration: underline;
}

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

.social-links a {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: #4FA08A;
    transform: translateY(-2px);
}

/* ----- Alerts ----- */
.alert {
    padding: 1rem 1.5rem;
    border-radius: 10px;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
}

.alert-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert-error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* ----- Pagination ----- */
.pagination {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 2rem;
}

.pagination a,
.pagination span {
    padding: 0.5rem 1rem;
    border-radius: 8px;
    border: 1px solid #D7DDD9;
    color: #3F5195;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.pagination a:hover {
    background: #4FA08A;
    color: #fff;
    border-color: #4FA08A;
}

.pagination .active {
    background: #3F5195;
    color: #fff;
    border-color: #3F5195;
}

/* ----- Search Bar ----- */
.search-bar {
    display: flex;
    gap: 0.5rem;
    max-width: 500px;
    margin: 0 auto 2rem;
}

.search-bar input {
    flex: 1;
    padding: 0.7rem 1rem;
    border: 2px solid #D7DDD9;
    border-radius: 50px;
    font-size: 0.9rem;
    font-family: inherit;
}

.search-bar input:focus {
    outline: none;
    border-color: #4FA08A;
}

/* ----- Page Header (inner) ----- */
.page-header {
    padding: 7rem 0 2rem;
    background: #fff;
    border-bottom: 1px solid #D7DDD9;
}

.page-header h1 {
    margin-bottom: 0.5rem;
}

.breadcrumb {
    display: flex;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: #999;
}

.breadcrumb a {
    color: #4FA08A;
}

/* ----- Empty State ----- */
.empty-state {
    text-align: center;
    padding: 4rem 2rem;
    color: #999;
}

.empty-state .icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: #D7DDD9;
}

/* ----- Loading Spinner ----- */
.spinner {
    width: 40px;
    height: 40px;
    border: 3px solid #D7DDD9;
    border-top-color: #4FA08A;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin: 2rem auto;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* ============================================================
   RESPONSIVE DESIGN
   ============================================================ */

/* Tablets (768px and below) */
@media (max-width: 768px) {
    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.6rem;
    }

    h3 {
        font-size: 1.3rem;
    }

    .navbar .container {
        position: relative;
    }

    .nav-toggle {
        display: block;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #3F5195;
        flex-direction: column;
        padding: 1rem 1.5rem;
        gap: 0;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    }

    .nav-links.open {
        display: flex;
    }

    .nav-links a {
        padding: 0.8rem 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        width: 100%;
    }

    .nav-links a:last-child {
        border-bottom: none;
    }

    .hero {
        min-height: auto;
        padding: 7rem 0 4rem;
    }

    .hero .container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-content h1 {
        font-size: 2.2rem;
    }

    .hero-buttons {
        justify-content: center;
    }

    .hero-image {
        display: none;
    }

    .hero::before {
        height: 60px;
    }

    .services-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }

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

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

    .form-row {
        grid-template-columns: 1fr;
    }

    .form-section {
        padding: 2rem;
    }

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

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }

    .section {
        padding: 3rem 0;
    }

    .page-banner {
        padding: 7rem 0 3.5rem;
    }

    .page-banner h1 {
        font-size: 2.1rem;
    }

    .page-banner p {
        font-size: 1rem;
        max-width: 90%;
        margin: 0 auto;
    }

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

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

    .info-card-icon {
        margin: 0 auto 1rem;
    }

    .split-layout,
    .split-contact-layout,
    .split-layout-about {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    /* Form-first stacking on mobile: form appears above info */
    .split-stack,
    .split-duo {
        grid-template-columns: 1fr;
        grid-template-areas:
            "form"
            "info";
        gap: 2rem;
    }

    .split-stack .split-divider {
        display: none;
    }

    .vertical-divider {
        display: none;
    }

    .mobile-divider {
        display: block;
        border: none;
        border-top: 1px solid #D7DDD9;
        margin: 2rem 0;
    }
}

/* Mobile (480px and below) */
@media (max-width: 480px) {
    html {
        font-size: 15px;
    }

    .container {
        padding: 0 1rem;
    }

    h1 {
        font-size: 1.8rem;
    }

    h2 {
        font-size: 1.4rem;
    }

    h3 {
        font-size: 1.15rem;
    }

    .hero-content h1 {
        font-size: 1.8rem;
    }

    .hero-buttons .btn {
        width: 100%;
    }

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

    .form-section {
        padding: 1.5rem;
    }

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

    .navbar-brand span {
        display: none;
    }

    .map-container iframe {
        height: 250px;
    }
}

/* Large screens (1200px+) */
@media (min-width: 1200px) {
    .hero-content h1 {
        font-size: 3.5rem;
    }

    .services-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* ============================================================
   GALLERY (Portfolio-style masonry)
   ============================================================ */
.gallery-masonry {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    align-items: start;
}

.gallery-item {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    cursor: pointer;
    background: #EAF4F1;
    box-shadow: 0 5px 25px rgba(63, 81, 149, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    min-height: 260px;
}

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px rgba(63, 81, 149, 0.18);
}

.gallery-item-large {
    grid-row: span 2;
    min-height: 420px;
}

.gallery-item-tall {
    min-height: 340px;
}

.gallery-item-wide {
    grid-column: span 2;
    min-height: 260px;
}

.gallery-item-media {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: inherit;
}

.gallery-item-media img {
    width: 100%;
    height: 100%;
    min-height: inherit;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
}

.gallery-featured {
    z-index: 1;
}

.gallery-placeholder {
    width: 100%;
    height: 100%;
    min-height: inherit;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: #4FA08A;
    background: #EAF4F1;
}

.gallery-slider {
    display: none;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
}

.gallery-slider img {
    opacity: 0;
    transition: opacity 0.4s ease;
}

.gallery-slider img.active {
    opacity: 1;
}

.gallery-item-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1.5rem;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.75), transparent);
    color: #fff;
    z-index: 3;
}

.gallery-item-overlay h3 {
    color: #fff;
    font-size: 1.1rem;
    margin-bottom: 0.3rem;
}

.gallery-item-overlay .gallery-item-date {
    font-size: 0.8rem;
    color: #E76F51;
    font-weight: 600;
}

.gallery-item-overlay p {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.85);
    margin-top: 0.4rem;
}

.gallery-item-overlay .gallery-view-hint {
    display: inline-block;
    margin-top: 0.6rem;
    font-size: 0.75rem;
    font-weight: 600;
    color: #fff;
    background: rgba(231, 111, 81, 0.9);
    padding: 0.25rem 0.8rem;
    border-radius: 50px;
}

/* ----- Lightbox ----- */
.gallery-lightbox {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.9);
    z-index: 3000;
    align-items: center;
    justify-content: center;
    display: flex;
}

.gallery-lightbox-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 800px;
    width: 90%;
    max-height: 85vh;
}

.gallery-lightbox-slider {
    width: 100%;
    max-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-radius: 12px;
    background: #000;
}

.gallery-lightbox-img {
    max-width: 100%;
    max-height: 60vh;
    object-fit: contain;
}

.gallery-lightbox-info {
    text-align: center;
    color: #fff;
    margin-top: 1rem;
}

.gallery-lightbox-info h3 {
    color: #fff;
    margin-bottom: 0.3rem;
}

.gallery-lightbox-info .gallery-lightbox-date {
    color: #E76F51;
    font-size: 0.85rem;
    font-weight: 600;
}

.gallery-lightbox-caption {
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.95rem;
    margin-top: 0.3rem;
}

.gallery-lightbox-desc {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.85rem;
    margin-top: 0.3rem;
}

.gallery-lightbox-caption-block,
.gallery-lightbox-desc-block {
    margin-top: 0.6rem;
}

.gallery-lightbox-label {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #E76F51;
    background: rgba(231, 111, 81, 0.15);
    padding: 0.15rem 0.6rem;
    border-radius: 50px;
    margin-bottom: 0.3rem;
}

.gallery-lightbox-caption-block{
    display: none;
}

.gallery-lightbox-caption-block.has-caption {
    display: block;
}

.gallery-lightbox-desc-block {
    display: none;
}

.gallery-lightbox-desc-block.has-desc {
    display: block;
}

.gallery-lightbox-counter {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.8rem;
    margin-top: 0.5rem;
}

.gallery-lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    background: none;
    border: none;
    color: #fff;
    font-size: 3rem;
    cursor: pointer;
    line-height: 1;
    transition: transform 0.3s ease;
}

.gallery-lightbox-close:hover {
    transform: rotate(90deg);
}

.gallery-lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.15);
    border: none;
    color: #fff;
    font-size: 2rem;
    cursor: pointer;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease;
}

.gallery-lightbox-nav:hover {
    background: rgba(231, 111, 81, 0.8);
}

.gallery-prev {
    left: 20px;
}

.gallery-next {
    right: 20px;
}

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

    .gallery-item,
    .gallery-item-large,
    .gallery-item-tall {
        min-height: 200px;
        grid-row: auto;
    }

    .gallery-item-large {
        grid-column: span 2;
    }

    .gallery-lightbox-nav {
        width: 40px;
        height: 40px;
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .gallery-masonry {
        grid-template-columns: 1fr;
    }

    .gallery-item-large {
        grid-column: auto;
    }
}
