/* ── Tablet ── */
@media (max-width: 992px) {
    .section {
        padding: 60px 28px;
        width: 100%;
        max-width: 100%;
    }

    .leadership-grid {
        grid-template-columns: 1fr;
        width: 100%;
    }

    .assistants {
        width: 100%;
    }

    .grid {
        grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
        width: 100%;
    }

    .leader-image {
        height: 400px;
    }

    .events-header {
        flex-wrap: wrap;
        gap: 16px;
    }

    .event-card-body {
        grid-template-columns: 64px minmax(0, 1fr);
        gap: 14px;
    }
}

/* ── Mobile ── */
@media (max-width: 768px) {
    html,
    body {
        width: 100%;
        max-width: 100%;
        overflow-x: hidden;
    }

    body {
        padding-top: 0px;
    }

    .navbar,
    .nav-container,
    .hero,
    .section,
    .footer,
    .leadership-grid,
    .leader-card,
    .assistants,
    .assistant-card,
    .event-container,
    .hero-slider,
    .slides,
    .member-card,
    .event-card {
        width: 100%;
        max-width: 100%;
        overflow-x: hidden;
    }

    .hero-slide::before {
        background: linear-gradient(to bottom, rgba(0,0,0,0.75), rgba(0,0,0,0.45));
    }

    .logo-text {
        font-size: 0.9rem;
    }

    .hero {
        height: 100vh;
        min-height: 100vh;
    }

    .hero-slider,
    .slides {
        height: 100%;
        min-height: inherit;
    }

    .hero-slide {
        inset: 0;
        width: 100%;
        height: 100%;
        padding: 0;
    }

    .prevbtn,
    .nextbtn {
        padding: 8px 12px;
        font-size: 0.85rem;
    }

    .nextbtn {
        right: 10px;
    }

    .slider-dots {
        bottom: 20px;
    }

    .section {
        padding: 50px 18px;
    }

    .section h2 {
        font-size: 1.85rem;
        margin-bottom: 24px;
    }

    .behind-mission {
        font-size: 1.25rem;
    }

    .leader-intro {
        padding: 1rem 0;
    }

    .leader-image {
        height: 320px;
    }

    .assistant-image {
        height: 200px;
    }

    .leader-text-overlay {
        padding: 18px;
    }

    .leader-text-overlay h3 {
        font-size: 1.5rem;
    }

    .assistant-text-overlay .assistant-name {
        font-size: 1.25rem;
    }

    .members-controls {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }

    #rankFilter {
        width: 100%;
        max-width: none;
    }

    #openMemberModal {
        width: 100%;
        text-align: center;
    }

    .grid {
        grid-template-columns: 1fr;
        width: 100%;
    }

    .events-header {
        flex-direction: column;
        align-items: stretch;
    }

    .add-event-btn {
        width: 100%;
        text-align: center;
    }

    .event-card-body {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .event-day {
        font-size: 2.5rem;
    }

    .event-date {
        flex-direction: row;
        justify-content: flex-start;
        gap: 10px;
    }

    .footer {
        flex-direction: column;
        gap: 20px;
        text-align: center;
        padding: 32px 18px;
    }

    .social-medials a {
        margin: 0 10px;
    }

    .modal-overlay {
        padding: 16px;
        align-items: flex-start;
        overflow-y: auto;
    }

    .modal {
        margin: auto 0;
        max-height: none;
    }

    .modal-actions {
        flex-direction: column;
    }

    .btn-cancel,
    .btn-submit {
        width: 100%;
        text-align: center;
    }

    .join-upload-row {
        grid-template-columns: 1fr;
        justify-items: center;
        text-align: center;
    }

    .join-upload-block {
        align-items: center;
    }

    .hero-content {
        max-width: calc(100% - 32px);
        box-sizing: border-box;
    }

    .hero h1,
    .section h2,
    .behind-mission {
        overflow-wrap: break-word;
        word-break: break-word;
    }
}

/* ── Small phones ── */
@media (max-width: 480px) {
    body {
        padding-top: 68px;
    }

    .nav-container {
        padding: 10px 14px;
    }

    .logo-icon {
        width: 34px;
        height: 34px;
    }

    .logo-text {
        font-size: 0.8rem;
    }

    .hero {
        height: 80vh;
        min-height: 80vh;
    }

    .hero-slider,
    .slides {
        height: 100%;
    }

    .hero-content {
        padding: 0 12px;
    }

    .hero h1 {
        font-size: 2rem;
        letter-spacing: 2px;
    }

    .tagline {
        font-size: 0.85rem;
        letter-spacing: 2px;
    }

    .hero-quote {
        font-size: 0.9rem;
    }

    .hero-buttons {
        flex-direction: column;
        width: 100%;
    }

    .btn-orange,
    .btn-outline {
        width: 100%;
        text-align: center;
        margin-right: 0;
    }

    .section {
        padding: 40px 14px;
    }

    .section h2 {
        font-size: 1.5rem;
    }

    .leader-image {
        height: 280px;
    }

    .rank,
    .senior-manager,
    .manager {
        font-size: 0.75rem;
    }

    .member-image,
    .event-image,
    .member-placeholder {
        height: 220px;
    }

    .prevbtn,
    .nextbtn {
        display: none;
    }
}
