/* ===== COMPREHENSIVE RESPONSIVE STYLES ===== */

/* ===== GLOBAL ADJUSTMENTS ===== */
* {
    box-sizing: border-box;
}

/* Smaller, more professional spacing */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.section {
    padding: 4rem 0;
}

/* ===== TYPOGRAPHY - SMALLER & PROFESSIONAL ===== */
h1 {
    font-size: clamp(2rem, 5vw, 3.5rem) !important;
    line-height: 1.2;
}

h2 {
    font-size: clamp(1.75rem, 4vw, 2.5rem) !important;
    line-height: 1.3;
}

h3 {
    font-size: clamp(1.25rem, 2.5vw, 1.75rem) !important;
    line-height: 1.4;
}

p,
.hero-subtitle,
.section-subtitle {
    font-size: clamp(0.95rem, 1.5vw, 1.1rem) !important;
    line-height: 1.6;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

/* ===== HEADER & NAVIGATION ===== */
.header {
    padding: 0.6rem 0;
}

.logo-img {
    width: 45px;
    height: 45px;
}

.logo-text {
    font-size: 1.4rem;
}

.nav-links a {
    font-size: 0.95rem;
}

.btn-become-leo {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
}

/* ===== HERO SECTION ===== */
.hero {
    min-height: 110vh;
    padding: 2rem 0;
}

.hero-content {
    max-width: 700px;
}

/* ===== BUTTONS ===== */
.btn {
    padding: 0.85rem 1.8rem;
    font-size: 0.95rem;
}

.cta-buttons {
    display: flex;
    gap: 2rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* ===== CARDS ===== */
.card-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.card {
    border-radius: 15px;
}

.card-image {
    height: 200px;
}

.card-content {
    padding: 1.5rem;
}

.card-title {
    font-size: 1.2rem;
    margin-bottom: 0.6rem;
}

.card-text {
    font-size: 0.95rem;
    margin-bottom: 1rem;
}

/* ===== FORMS ===== */
.form-container {
    padding: 2rem;
    max-width: 650px;
}

.form-group {
    margin-bottom: 1.3rem;
}

.form-group label {
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.form-group input,
.form-group textarea,
.form-group select {
    padding: 0.85rem;
    font-size: 0.95rem;
    border-radius: 10px;
}

/* ===== PAGE HEADER ===== */
.page-header {
    min-height: 70vh;
    margin-top: 70px;
}

/* ===== EVENTS PAGE ===== */
.event-card {
    border-radius: 18px;
}

.event-image {
    height: 220px;
}

.event-content {
    padding: 1.8rem;
}

.event-title {
    font-size: 1.3rem;
}

.event-description {
    font-size: 0.95rem;
}

.event-date-badge,
.event-status-badge {
    font-size: 0.8rem;
    padding: 6px 12px;
}

/* ===== GALLERY PAGE ===== */
.gallery-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.2rem;
}

.gallery-image {
    height: 220px;
}

.gallery-title {
    font-size: 1.05rem;
}

.gallery-description {
    font-size: 0.85rem;
}

/* Gallery Modal */
.modal-content {
    max-width: 85vw;
    max-height: 85vh;
}

.modal-title {
    font-size: 1.4rem;
}

.modal-description {
    font-size: 0.95rem;
}

.close-modal {
    width: 45px;
    height: 45px;
    font-size: 1.8rem;
}

.modal-nav {
    width: 55px;
    height: 55px;
    font-size: 1.8rem;
}

/* ===== OFFICERS PAGE ===== */
.officer-card {
    border-radius: 20px;
}

.officer-image {
    height: 280px;
}

.officer-content {
    padding: 2rem 1.8rem;
}

.officer-name {
    font-size: 1.5rem;
}

.officer-year {
    font-size: 0.95rem;
}

.officer-bio {
    font-size: 0.95rem;
}

.contact-link {
    width: 45px;
    height: 45px;
}

.group-title {
    font-size: 2rem;
}

/* ===== PROJECTS PAGE ===== */
.project-stats {
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1.5rem;
}

.stat-item {
    padding: 1.5rem;
}

.stat-number {
    font-size: clamp(2rem, 5vw, 3rem) !important;
}

.stat-label {
    font-size: 0.95rem;
}

/* ===== FILTER TABS/BUTTONS ===== */
.filter-tabs,
.filter-buttons {
    gap: 0.8rem;
    margin-bottom: 2rem;
}

.filter-tab,
.filter-button {
    padding: 0.7rem 1.3rem;
    font-size: 0.9rem;
}

/* ===== FOOTER ===== */
.footer {
    padding: 3.5rem 0 1.5rem;
}

.footer-section h3 {
    font-size: 1.05rem;
    margin-bottom: 1rem;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.social-icons a {
    width: 40px;
    height: 40px;
    font-size: 1.2rem;
}

.footer-bottom {
    font-size: 0.9rem;
    padding-top: 1.2rem;
}

/* ===== LOADING & SPINNER ===== */
.loading-spinner {
    padding: 3rem 0;
}

.spinner {
    width: 35px;
    height: 35px;
    border-width: 3px;
}

/* ===== TOAST NOTIFICATIONS ===== */
.toast {
    padding: 1rem 1.4rem;
    font-size: 0.95rem;
    bottom: 20px;
    right: 20px;
    left: auto;
}

/* ===== TABLET (992px and below) ===== */
@media (max-width: 992px) {
    .section {
        padding: 3.5rem 0;
    }

    .logo-text {
        font-size: 1.2rem;
    }

    .card-grid {
        grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
        gap: 1.3rem;
    }

    .hero {
        min-height: 95vh;
    }

    .page-header {
        min-height: 60vh;
    }

    /* Events */
    .event-image {
        height: 200px;
    }

    /* Gallery */
    .gallery-grid {
        grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    }

    .gallery-image {
        height: 200px;
    }

    /* Officers */
    .officer-image {
        height: 260px;
    }

    .officer-content {
        padding: 1.8rem 1.5rem;
    }

    .group-title {
        font-size: 1.8rem;
    }

    /* Projects */
    .project-stats {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ===== MOBILE (768px and below) ===== */
@media (max-width: 768px) {
    .container {
        padding: 0 1rem;
    }

    .section {
        padding: 3rem 0;
    }

    /* Header */
    .header {
        padding: 0.5rem 0;
    }

    .logo-img {
        width: 40px;
        height: 40px;
    }

    .logo-text {
        font-size: 1.1rem;
    }

    /* Hero */
    .hero {
        min-height: 85vh;
        padding: 1.5rem 0;
    }

    .page-header {
        min-height: 55vh;
        margin-top: 65px;
    }

    /* Typography */
    h1 {
        font-size: clamp(1.75rem, 6vw, 2.5rem) !important;
    }

    h2 {
        font-size: clamp(1.5rem, 5vw, 2rem) !important;
    }

    h3 {
        font-size: clamp(1.15rem, 3vw, 1.5rem) !important;
    }

    /* Cards */
    .card-grid {
        grid-template-columns: 1fr;
        gap: 1.2rem;
    }

    .card-image {
        height: 180px;
    }

    .card-content {
        padding: 1.2rem;
    }

    /* Buttons */
    .btn {
        padding: 0.75rem 1.5rem;
        font-size: 0.9rem;
    }

    .cta-buttons {
        flex-direction: column;
        align-items: stretch;
        gap: 0.8rem;
    }

    /* Forms */
    .form-container {
        padding: 1.5rem;
    }

    .form-group input,
    .form-group textarea,
    .form-group select {
        padding: 0.75rem;
        font-size: 0.9rem;
    }

    /* Events Page */
    .event-card {
        border-radius: 15px;
    }

    .event-image {
        height: 180px;
    }

    .event-content {
        padding: 1.5rem;
    }

    .event-title {
        font-size: 1.2rem;
    }

    .event-description {
        font-size: 0.9rem;
    }

    .event-details {
        gap: 0.6rem;
    }

    .event-detail {
        font-size: 0.9rem;
    }

    .filter-tabs {
        gap: 0.5rem;
        margin-bottom: 2rem;
    }

    .filter-tab {
        padding: 0.6rem 1rem;
        font-size: 0.85rem;
    }

    /* Gallery Page */
    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .gallery-image {
        height: 200px;
    }

    .gallery-title {
        font-size: 1rem;
    }

    .gallery-description {
        font-size: 0.8rem;
    }

    .modal-content {
        max-width: 95vw;
        max-height: 95vh;
    }

    .modal-info {
        padding: 1.5rem;
    }

    .modal-title {
        font-size: 1.2rem;
    }

    .modal-description {
        font-size: 0.85rem;
    }

    .modal-nav {
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
    }

    .close-modal {
        width: 40px;
        height: 40px;
        font-size: 1.5rem;
        top: 15px;
        right: 15px;
    }

    .modal-prev {
        left: 10px;
    }

    .modal-next {
        right: 10px;
    }

    /* Officers Page */
    .officer-card {
        border-radius: 16px;
    }

    .officer-image {
        height: 220px;
    }

    .officer-content {
        padding: 1.5rem 1.2rem;
    }

    .officer-name {
        font-size: 1.3rem;
    }

    .officer-year {
        font-size: 0.9rem;
    }

    .officer-bio {
        font-size: 0.9rem;
        margin-bottom: 1.5rem;
    }

    .officer-position-badge {
        font-size: 0.85rem;
        padding: 10px 16px;
    }

    .contact-link {
        width: 42px;
        height: 42px;
        font-size: 1rem;
    }

    .group-title {
        font-size: 1.6rem;
        margin-bottom: 2rem;
    }

    .position-group {
        margin-bottom: 3rem;
    }

    /* Projects Page */
    .project-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .stat-item {
        padding: 1.2rem;
    }

    .stat-number {
        font-size: clamp(1.75rem, 6vw, 2.5rem) !important;
    }

    .stat-label {
        font-size: 0.85rem;
    }

    .filter-buttons {
        gap: 0.6rem;
        margin-bottom: 1.5rem;
    }

    .filter-button {
        padding: 0.6rem 1rem;
        font-size: 0.85rem;
    }

    /* Footer */
    .footer {
        padding: 3rem 0 1.5rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }

    .social-icons {
        justify-content: center;
    }

    /* Tables */
    .table-container {
        overflow-x: auto;
    }

    .table th,
    .table td {
        padding: 0.75rem;
        font-size: 0.85rem;
    }

    /* Modals */
    .modal-content {
        width: 95%;
        padding: 1.2rem;
    }

    /* Loading */
    .loading-spinner {
        padding: 2.5rem 0;
    }

    .spinner {
        width: 30px;
        height: 30px;
    }

    /* Toast */
    .toast {
        padding: 0.85rem 1.2rem;
        font-size: 0.85rem;
        bottom: 15px;
        right: 15px;
        left: 15px;
        text-align: center;
        max-width: calc(100% - 30px);
    }

    /* No results messages */
    .no-events,
    .no-gallery,
    .no-officers {
        padding: 3rem 0;
        font-size: 0.9rem;
    }

    .no-events i,
    .no-gallery i,
    .no-officers i {
        font-size: 2.5rem;
    }
}

/* ===== SMALL MOBILE (480px and below) ===== */
@media (max-width: 480px) {
    .container {
        padding: 0 0.75rem;
    }

    .section {
        padding: 2.5rem 0;
    }

    .logo-text {
        font-size: 1rem;
    }

    .logo-img {
        width: 36px;
        height: 36px;
    }

    .hero {
        min-height: 75vh;
    }

    .page-header {
        min-height: 50vh;
    }

    h1 {
        font-size: clamp(1.5rem, 7vw, 2rem) !important;
    }

    h2 {
        font-size: clamp(1.3rem, 6vw, 1.75rem) !important;
    }

    h3 {
        font-size: clamp(1.1rem, 4vw, 1.3rem) !important;
    }

    /* Cards */
    .card-image {
        height: 160px;
    }

    .card-content {
        padding: 1rem;
    }

    .card-title {
        font-size: 1.1rem;
    }

    .card-text {
        font-size: 0.85rem;
    }

    /* Buttons */
    .btn {
        width: 100%;
        justify-content: center;
        padding: 0.7rem 1.2rem;
        font-size: 0.85rem;
    }

    /* Forms */
    .form-container {
        padding: 1.2rem;
    }

    .form-group {
        margin-bottom: 1rem;
    }

    .form-group label {
        font-size: 0.85rem;
    }

    .form-group input,
    .form-group textarea,
    .form-group select {
        padding: 0.7rem;
        font-size: 0.85rem;
    }

    /* Events */
    .event-image {
        height: 160px;
    }

    .event-content {
        padding: 1.2rem;
    }

    .event-title {
        font-size: 1.1rem;
    }

    .event-description {
        font-size: 0.85rem;
    }

    .event-date-badge,
    .event-status-badge {
        font-size: 0.75rem;
        padding: 5px 10px;
    }

    /* Gallery */
    .gallery-image {
        height: 180px;
    }

    .gallery-title {
        font-size: 0.95rem;
    }

    .gallery-description {
        font-size: 0.75rem;
    }

    .category-badge,
    .gallery-date {
        font-size: 0.7rem;
        padding: 4px 8px;
    }

    /* Officers */
    .officer-image {
        height: 200px;
    }

    .officer-content {
        padding: 1.2rem 1rem;
    }

    .officer-name {
        font-size: 1.2rem;
    }

    .officer-year {
        font-size: 0.85rem;
    }

    .officer-bio {
        font-size: 0.85rem;
    }

    .officer-position-badge {
        font-size: 0.75rem;
        padding: 8px 12px;
    }

    .contact-link {
        width: 38px;
        height: 38px;
        font-size: 0.9rem;
    }

    .group-title {
        font-size: 1.4rem;
    }

    /* Projects */
    .project-stats {
        grid-template-columns: 1fr;
    }

    .stat-item {
        padding: 1rem;
    }

    .stat-number {
        font-size: clamp(1.5rem, 8vw, 2rem) !important;
    }

    .stat-label {
        font-size: 0.8rem;
    }

    /* Filter tabs/buttons */
    .filter-tab,
    .filter-button {
        padding: 0.5rem 0.8rem;
        font-size: 0.8rem;
    }

    /* Footer */
    .footer-section h3 {
        font-size: 1rem;
    }

    .footer-section ul li {
        font-size: 0.85rem;
    }

    .social-icons a {
        width: 36px;
        height: 36px;
        font-size: 1.1rem;
    }

    .footer-bottom {
        font-size: 0.8rem;
    }

    /* Loading */
    .spinner {
        width: 25px;
        height: 25px;
    }

    /* Toast */
    .toast {
        padding: 0.75rem 1rem;
        font-size: 0.8rem;
        bottom: 10px;
        right: 10px;
        left: 10px;
        max-width: calc(100% - 20px);
    }
}

/* ===== SMOOTH TRANSITIONS ===== */
@media (prefers-reduced-motion: no-preference) {
    * {
        transition: font-size 0.2s ease, padding 0.2s ease, margin 0.2s ease;
    }

    button,
    a,
    .card,
    .btn {
        transition: all 0.3s ease !important;
    }
}

/* ===== REDUCED MOTION ===== */
@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}