/* ===== CSS Variables ===== */
:root {
    --primary: #2c3e50;
    --secondary: #8e44ad;
    --accent: #8e44ad;
    --light: #ecf0f1;
    --dark: #222;
    --white: #fff;
    --text: #333;
    --secondary-color: #3498db;
}

/* ===== Base Styles ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text);
    background: var(--white);
    overflow-x: hidden;
}

h1,
h2,
h3,
h4 {
    font-weight: 700;
}

a {
    text-decoration: none;
    color: inherit;
}

img {
    max-width: 100%;
    height: auto;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.section {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    color: var(--primary);
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: var(--accent);
    margin: 15px auto 0;
}

.bg-light {
    background-color: var(--light);
}

/* ===== Buttons ===== */
.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 4px;
    font-weight: 600;
    text-align: center;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    min-width: 120px;
    min-height: 44px;
}

.btn-primary {
    background-color: var(--accent);
    color: var(--white);
}

.btn-primary:hover {
    background-color: #7d3c98;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.btn-secondary {
    background-color: var(--secondary);
    color: var(--white);
}

.btn-secondary:hover {
    background-color: #7d3c98;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.btn-outline {
    background-color: transparent;
    border: 2px solid var(--accent);
    color: var(--accent);
}

.btn-outline:hover {
    background-color: var(--accent);
    color: var(--white);
}

.btn-counseling {
    background: linear-gradient(to right, #2ecc71, #27ae60);
    color: white;
}

.btn-counseling:hover {
    background: linear-gradient(to right, #27ae60, #219653);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(46, 204, 113, 0.4);
}

/* ===== Header ===== */
header {
    background-color: var(--white);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

.logo {
    font-size: clamp(1.2rem, 3vw, 1.5rem);
    font-weight: 700;
    color: var(--primary);
}

.nav-links {
    display: flex;
    list-style: none;
}

.nav-links li a {
    padding: 10px 15px;
    color: var(--primary);
    font-weight: 500;
    transition: all 0.3s ease;
    min-height: 44px;
    display: flex;
    align-items: center;
}

.nav-links li a:hover,
.nav-links li a.active {
    color: var(--accent);
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--primary);
    cursor: pointer;
    min-width: 44px;
    min-height: 44px;
}

/* ===== Hero Section ===== */
.hero {
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('hero-bg.jpg') center/cover no-repeat;
    min-height: 100vh;
    display: flex;
    align-items: center;
    text-align: center;
    color: var(--white);
    padding-top: 80px;
}

.hero-content h1 {
    font-size: clamp(2rem, 6vw, 3rem);
    margin-bottom: 1rem;
}

.hero-content p.subtitle {
    font-size: clamp(1.2rem, 3vw, 1.5rem);
    margin-bottom: 2rem;
    opacity: 0.9;
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 2rem;
    flex-wrap: wrap;
}

/* ===== About Section ===== */
.about-content {
    display: flex;
    gap: 40px;
    margin-top: 30px;
    flex-wrap: wrap;
}

.about-image {
    flex: 1;
    min-width: 300px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.about-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.about-text {
    flex: 1;
    min-width: 300px;
}

.text {
    margin-bottom: 25px;
}

.text p {
    margin-bottom: 15px;
    line-height: 1.7;
}

.text ul {
    margin-left: 20px;
    margin-bottom: 15px;
}

.text li {
    margin-bottom: 8px;
}

.expandable {
    position: relative;
    overflow: hidden;
    transition: max-height 0.5s ease;
}

.expandable.collapsed {
    max-height: 200px;
    mask-image: linear-gradient(to bottom, black 60%, transparent 100%);
    -webkit-mask-image: linear-gradient(to bottom, black 60%, transparent 100%);
}

.expandable.expanded {
    max-height: 2000px;
}

.toggle-button {
    background: linear-gradient(to right, #3498db, #2980b9);
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 50px;
    cursor: pointer;
    display: flex;
    align-items: center;
    margin: 20px auto;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(52, 152, 219, 0.3);
}

.toggle-button:hover {
    background: linear-gradient(to right, #2980b9, #2573a7);
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(52, 152, 219, 0.4);
}

.toggle-button i {
    margin-right: 8px;
}

.tab-titles {
    display: flex;
    margin: 25px 0 20px;
    border-bottom: 1px solid #ddd;
    flex-wrap: nowrap;
}

.tab-links {
    padding: 12px 20px;
    cursor: pointer;
    position: relative;
    font-weight: 500;
    min-height: 44px;
    display: flex;
    align-items: center;
    transition: all 0.3s ease;
}

.tab-links:hover {
    color: #3498db;
}

.tab-links.active-link {
    color: #3498db;
}

.tab-links.active-link::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 3px;
    background: #3498db;
}

.tab-contents {
    display: none;
    padding: 20px 0;
}

.tab-contents.active-tab {
    display: block;
}

.tab-contents ul {
    list-style: none;
    margin-left: 20px;
}

.tab-contents ul li {
    margin-bottom: 12px;
    position: relative;
    padding-left: 25px;
}

.tab-contents ul li::before {
    content: '•';
    color: #3498db;
    position: absolute;
    left: 0;
    font-size: 1.5rem;
    top: -5px;
}

@media (max-width: 768px) {
    .about-content {
        flex-direction: column;
    }

    .about-image,
    .about-text {
        min-width: 100%;
    }

    .section-title {
        font-size: 2rem;
    }
}

/* ===== Ministries Section ===== */
.ministries-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.ministry-card {
    background: var(--white);
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.ministry-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.ministry-card i {
    font-size: 2.5rem;
    color: var(--accent);
    margin-bottom: 20px;
}

/* Form Styling */
#applicationForm {
    display: grid;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    margin-bottom: 8px;
    font-weight: 500;
    color: #2c3e50;
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 15px;
    border: 2px solid #e4e8f0;
    border-radius: 10px;
    font-size: 1rem;
    transition: all 0.3s ease;
    font-family: 'Poppins', sans-serif;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: #3498db;
    outline: none;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.2);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.submit-btn {
    margin-top: 10px;
    background: linear-gradient(to right, #2ecc71, #27ae60);
    box-shadow: 0 5px 15px rgba(46, 204, 113, 0.4);
}

.submit-btn:hover {
    background: linear-gradient(to right, #27ae60, #219653);
    box-shadow: 0 8px 20px rgba(46, 204, 113, 0.6);
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-60px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-10px);
    }

    100% {
        transform: translateY(0px);
    }
}

.icon {
    animation: float 3s ease-in-out infinite;
}

/* Responsive Design */
@media (max-width: 768px) {
    .section {
        padding: 60px 0;
    }

    .section-title {
        font-size: 2.2rem;
    }

    .ministries-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .ministry-card {
        padding: 30px 20px;
    }

    .modal-content {
        padding: 30px 20px;
        width: 95%;
    }

    .modal-title {
        font-size: 1.8rem;
    }
}

#openApplicationForm {
    margin-top: 30px;
}

/* ===== Publications Section ===== */
#publications {
    background: linear-gradient(to bottom, #ffffff, #f8f9fa);
    padding: 60px 30px;
    border-radius: 18px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    margin: 0 20px;
    text-align: center;
}

.section-intro {
    max-width: 800px;
    margin: 0 auto 50px;
    font-size: 1.1rem;
    line-height: 1.7;
    color: #555;
}

.publications-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.publication-card {
    background-color: var(--light);
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
}

.publication-card:hover {
    transform: translateY(-5px);
}

.publication-card h3 {
    color: var(--accent);
    margin-bottom: 15px;
}

.publication-card p {
    margin-bottom: 20px;
}


/* ===== Books Section ===== */
.books {
    padding: 6rem 0;
    background: #f8fafc;
}

.books-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
    margin-top: 3rem;
}

.book-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.book-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.book-image {
    height: 220px;
    overflow: hidden;
}

.book-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.book-card:hover .book-image img {
    transform: scale(1.05);
}

.book-details {
    padding: 1.5rem;
}

.book-details h3 {
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.book-details p {
    color: #555;
    margin-bottom: 1rem;
}

.book-link {
    text-decoration: none;
    color: var(--accent);
    font-weight: bold;
    transition: color 0.3s;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    padding: 8px 12px;
}

.book-link:hover {
    color: var(--primary);
}

/* ===== Testimonials Section ===== */
.testimonials {
    padding: 6rem 0;
    background-color: #f9f9f9;
}

.testimonial-slider {
    max-width: 1000px;
    margin: 3rem auto 0;
    position: relative;
    overflow: hidden;
}

.testimonial-track {
    display: flex;
    transition: transform 0.5s ease;
}

.testimonial-card {
    min-width: 100%;
    padding: 0 2rem;
    box-sizing: border-box;
}

.testimonial-content {
    background: white;
    padding: 3rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    position: relative;
    text-align: center;
}

.testimonial-content::before {
    content: '"';
    font-size: 8rem;
    color: var(--secondary-color);
    opacity: 0.1;
    position: absolute;
    top: 20px;
    left: 20px;
    line-height: 1;
}

.testimonial-quote {
    font-size: clamp(1.2rem, 3vw, 1.5rem);
    font-style: italic;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 1;
}

.testimonial-meta {
    font-size: 1.1rem;
    color: var(--primary);
    font-weight: bold;
}

.testimonial-nav {
    display: flex;
    justify-content: center;
    margin-top: 2rem;
}

.testimonial-dot {
    border-radius: 50%;
    background: #ddd;
    margin: 0 5px;
    cursor: pointer;
    transition: background 0.3s ease;
    min-width: 10px;
    min-height: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.testimonial-dot::after {
    content: '';
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: currentColor;
}

.testimonial-dot.active {
    color: var(--secondary-color);
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-header h2 {
    font-size: clamp(2rem, 5vw, 2.8rem);
    margin-bottom: 1rem;
}

.section-header p {
    font-size: clamp(1rem, 2.5vw, 1.2rem);
    color: #666;
    max-width: 700px;
    margin: 0 auto;
}

/* ===== Gallery Section ===== */
.gallery-section {
  padding: 60px 20px;
  text-align: center;
}

.album-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 25px;
}

.album {
  cursor: pointer;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  transition: transform 0.3s;
  display: flex;
  flex-direction: column; /* Allow content to stack */
}
.album:hover {
  transform: translateY(-5px);
}
.album img {
  width: 100%;
  height: 200px;            /* Reduce height on all screens */
  object-fit: cover;
}

.album h3 {
  margin: 10px 0 5px;
  font-size: 1.1rem;
}

.album p {
  font-size: 0.9rem;
  color: #555;
  padding: 0 10px 10px;
  text-align: left;
  line-height: 1.4;
  display: -webkit-box;
  /* -webkit-line-clamp: 3;       optional: limit lines */
  -webkit-box-orient: vertical;
  overflow: hidden;
}


.album-photos { 
    display: none; 
}
.album-photos.active { 
    display: block; 
}

.photo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 15px;
  margin-top: 20px;
}

.photo-grid img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  border-radius: 8px;
}

.back-btn {
  background: #444;
  color: #fff;
  border: none;
  padding: 8px 15px;
  border-radius: 6px;
  cursor: pointer;
  margin-bottom: 15px;
}

.hidden { display: none; }

/* ===== Contact Section ===== */
.contact-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

.contact-info h3 {
    margin-bottom: 20px;
    color: var(--accent);
}

.info-item {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.info-item i {
    color: var(--accent);
    font-size: 1.2rem;
    margin-right: 15px;
    width: 25px;
    text-align: center;
}

.social-links {
    margin-top: 30px;
}

.social-icons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.social-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: rgba(142, 68, 173, 0.1);
    color: var(--accent);
    border-radius: 50%;
    transition: all 0.3s ease;
}

.social-icons a:hover {
    background: var(--accent);
    color: white;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    margin-bottom: 15px;
    font-family: inherit;
    font-size: 16px;
}

.contact-form textarea {
    min-height: 150px;
    resize: vertical;
}

/* Footer */
.footer {
  background: #2c3e50; /* Dark background for elegance */
  color: #eee;
  padding: 60px 20px 20px;
  font-family: 'Lato', sans-serif;
}

.footer-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 40px;
}

.footer h3, .footer h4 {
  color: #f9d342; /* Gold accent */
  margin-bottom: 15px;
}

.footer-about p {
  margin-bottom: 20px;
  font-size: 14px;
  line-height: 1.6;
}

.footer-links ul {
  list-style: none;
  padding: 0;
}

.footer-links ul li {
  margin-bottom: 10px;
}

.footer-links ul li a {
  color: #eee;
  text-decoration: none;
  transition: color 0.3s;
}

.footer-links ul li a:hover {
  color: #f9d342;
}

.footer-contact p {
  font-size: 14px;
  margin: 8px 0;
}

.footer-social .social-icons a {
  color: #eee;
  margin-right: 15px;
  font-size: 20px;
  transition: color 0.3s;
}

.footer-social .social-icons a:hover {
  color: #f9d342;
}

/* Donate Button in Footer */
.btn-donate {
  display: inline-block;
  background: #f9d342;
  color: #111;
  padding: 10px 18px;
  border-radius: 5px;
  font-weight: bold;
  transition: background 0.3s;
  text-decoration: none;
}

.btn-donate:hover {
  background: #fff176;
}

/* Bottom Bar */
.footer-bottom {
  margin-top: 40px;
  border-top: 1px solid #333;
  text-align: center;
  padding-top: 15px;
  font-size: 13px;
  color: #bbb;
}


/* ===== Modal Styling ===== */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    animation: fadeIn 0.3s ease-in-out;
}

.modal-content {
    background: #fff;
    margin: 10% auto;
    padding: 45px;
    border-radius: 20px;
    width: 90%;
    max-width: 650px;
    text-align: center;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.25);
    position: relative;
    animation: slideIn 0.4s ease-out;
}

.modal-content h3 {
    font-size: 2rem;
    margin-bottom: 20px;
    color: #2c3e50;
}

.modal-content p {
    color: #555;
    font-size: 1.1rem;
    margin-bottom: 35px;
    line-height: 1.6;
}

.close {
    color: #aaa;
    position: absolute;
    top: 20px;
    right: 25px;
    font-size: 32px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.2s ease;
}

.close:hover {
    color: #e74c3c;
}

.modal-links {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 30px;
}

.modal-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px 25px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    color: #fff;
    font-size: 1.1rem;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

.modal-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 7px 15px rgba(0, 0, 0, 0.2);
}

.modal-btn i {
    margin-right: 12px;
    font-size: 1.3rem;
}

.modal-btn.amazon {
    background: linear-gradient(to right, #ff9900, #ff7700);
}

.modal-btn.amazon:hover {
    background: linear-gradient(to right, #ff7700, #e65c00);
}

.modal-btn.selar {
    background: linear-gradient(to right, #00b894, #009975);
}

.modal-btn.selar:hover {
    background: linear-gradient(to right, #009975, #008062);
}

.modal-btn.pdf {
    background: linear-gradient(to right, #6c63ff, #5146d8);
}

.modal-btn.pdf:hover {
    background: linear-gradient(to right, #5146d8, #4032d1);
}

/* ===== Animations ===== */
@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-60px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-10px);
    }

    100% {
        transform: translateY(0px);
    }
}

.icon {
    animation: float 3s ease-in-out infinite;
}

/* ===== Responsive Design ===== */
@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: block;
    }

    .nav-links {
        position: fixed;
        top: 45px;
        left: -100%;
        width: 100%;
        background: var(--white);
        flex-direction: column;
        align-items: center;
        padding: 20px 0;
        box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
        transition: all 0.3s ease;
    }

    .nav-links.active {
        left: 0;
    }

    .nav-links li {
        margin: 10px 0;
        width: 100%;
        text-align: center;
    }

    .nav-links li a {
        width: 100%;
        justify-content: center;
        padding: 15px;
    }

    .section {
        padding: 60px 0;
    }

    .tab-titles {
        flex-direction: row;
        border-bottom: none;
    }

    .tab-links {
        padding: 15px 20px;
        border-bottom: 1px solid #ddd;
        text-align: center;
    }

    .tab-links.active-link::after {
        display: none;
    }

    .about-content {
        flex-direction: column;
        gap: 30px;
        text-align: center;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }

    .contact-container {
        gap: 30px;
    }

    .testimonial-card {
        padding: 0 1rem;
    }

    .testimonial-content {
        padding: 2rem;
    }

    .social-icons {
        justify-content: center;
    }

    .header h1 {
        font-size: 2.2rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .featured-works {
        padding: 25px;
    }

    .featured-title {
        font-size: 1.5rem;
    }

    .modal-content {
        padding: 30px 25px;
    }

    .modal-content h3 {
        font-size: 1.7rem;
    }

    .modal-btn {
        padding: 14px 20px;
        font-size: 1rem;
    }
}

@media (max-width: 576px) {
    .container {
        padding: 0 10px;
    }

    .ministry-card,
    .publication-card {
        padding: 20px;
    }

    .section {
        padding: 40px 0;
    }

    .testimonials {
        padding: 4rem 0;
    }

    .books {
        padding: 4rem 0;
    }

    .ministries-grid,
    .publications-grid,
    .books-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    }
}

/* ===== Accessibility Improvements ===== */
button,
.btn,
a[role="button"],
input[type="button"],
input[type="submit"] {
    min-height: 44px;
    min-width: 44px;
}

button:focus,
.btn:focus,
a:focus,
input:focus,
textarea:focus {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

blockquote {
    font-style: italic;
    font-size: clamp(1.2rem, 3vw, 1.5rem);
    color: #fff;
    margin: 20px 0;
    padding: 0 20px;
}

.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.8);
  justify-content: center;
  align-items: center;
  z-index: 1000;
}
.lightbox.active { 
    display: flex; 
}
.lightbox img {
  max-width: 80%;
  height: 80%;
  border-radius: 8px;
  object-fit: contain;
}
.lightbox .close {
  position: absolute;
  top: 20px;
  right: 40px;
  font-size: 40px;
  color: white;
  cursor: pointer;
}
.lightbox .prev,
.lightbox .next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: white;
  font-size: 40px;
  cursor: pointer;
  user-select: none;
}
.lightbox .prev { 
    left: 40px;
}
.lightbox .next { 
    right: 40px;
}

@media (max-width: 600px) {
    .album img {
        height: 200px;
    }

    .album p {
        display: -webkit-box;
        /* -webkit-line-clamp: 2; */
        /* show only 2 lines */
        line-clamp: 2;
        /* standard property for compatibility */
        /* -webkit-box-orient: vertical; */
        overflow: hidden;
    }
    .photo-grid {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(90px, 2fr));
        gap: 15px;
        margin-top: 20px;
    }
}


 /* Counseling Button Container */
.counseling-container {
    text-align: center;
    margin: 10px 0;
    padding: 20px;
    background: linear-gradient(135deg, #e8f5e9 0%, #c8e6c9 100%);
    border-radius: 12px;
    border-left: 5px solid #2ecc71;
    /* border-left: 5px solid var(--secondary); */
}

.counseling-container h3 {
    color: #2c3e50;
    margin-bottom: 15px;
    font-family: 'Playfair Display', serif;
}
.counseling-container > .btn {
    /* background: linear-gradient(to right, #2ecc71, #27ae60); */
    /* color: white; */
    /* font-size: 1.1rem; */
    margin: 20px 0;
    /* box-shadow: 0 5px 15px rgba(46, 204, 113, 0.4); */
}

.logo-mark {
    width: 46px;
    height: 46px;
    border-radius: 10px;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, var(--accent-2), var(--accent));
    color: #fff;
    font-weight: 700;
}

/* Modal overlay */
#applicationModal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.6);
  display: none; /* hidden by default */
  justify-content: center;
  align-items: center;
  z-index: 2000;
  padding: 20px;              /* space around content on small screens */
  overflow-y: auto;            /* allow scroll if form is taller than screen */
}

/* Modal content (form box) */
#applicationModal .modal-content {
  background: #fff;
  border-radius: 12px;
  padding: 30px;
  max-width: 600px;
  width: 100%;
  box-sizing: border-box;

  /* max-height: 90vh;      prevent overflowing off screen */
  /* overflow-y: auto;      scroll inside if needed */
}

/* Make it adapt better on small screens */
@media (max-width: 480px) {
  #applicationModal .modal-content {
    padding: 20px;
  }
}
