/* ============================================================
 * ADTN OFFICIAL WEBSITE - MAIN STYLESHEET
 * Association of Dental Technologists of Nigeria
 * (Responsive pass: fluid type scale, smaller H1s, extra breakpoints)
 * ============================================================ */

/* === IMPORT FONTS === */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

/* === CSS VARIABLES === */
:root {
    --adtn-white: #FFFFFF;
    --adtn-navy: #0B2341;
    --adtn-dark-navy: #07162D;
    --adtn-royal-blue: #0056B3;
    --adtn-gold: #D4AF37;
    --adtn-light-gold: #F4E4A0;
    --adtn-light-gray: #F8F9FA;
    --adtn-border-gray: #E5E5E5;
    --adtn-text-dark: #1A1A2E;
    --adtn-text-muted: #6B7280;
    --adtn-success: #10B981;
    --adtn-danger: #EF4444;
    --adtn-warning: #F59E0B;

    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 30px rgba(0,0,0,0.12);
    --shadow-xl: 0 20px 60px rgba(0,0,0,0.15);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 20px;
    --transition: all 0.3s ease;

    /* Fluid type tokens: min, preferred(vw), max */
    --fs-h1-hero: clamp(1.6rem, 1.05rem + 2.6vw, 2.75rem);   /* was fixed 3.5rem */
    --fs-h1-page: clamp(1.4rem, 1rem + 1.8vw, 2.1rem);        /* was fixed 2.5rem */
    --fs-h2-section: clamp(1.35rem, 1rem + 1.6vw, 2.1rem);    /* was fixed 2.5rem */
    --fs-cta: clamp(1.35rem, 1rem + 1.6vw, 2.1rem);
    --fs-body-lead: clamp(0.95rem, 0.85rem + 0.4vw, 1.1rem);
}

/* === RESET & BASE === */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-primary);
    font-size: 16px;
    line-height: 1.7;
    color: var(--adtn-text-dark);
    background-color: var(--adtn-white);
    overflow-x: hidden;
    width: 100%;
}

img, svg, video {
    max-width: 100%;
    height: auto;
}

a {
    color: var(--adtn-royal-blue);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--adtn-navy);
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 300;
    line-height: 1.3;
    color: var(--adtn-navy);
    word-wrap: break-word;
}

/* Any bare H1 on the site — kept modest by default */
h1 {
    font-size: clamp(1.5rem, 1.1rem + 1.6vw, 2.25rem);
}

/* === TOP BAR === */
.top-bar {
    background-color: var(--adtn-navy);
    color: var(--adtn-white);
    font-size: 13px;
    padding: 8px 0;
    position: relative;
    z-index: 1030;
}

.top-bar a {
    color: var(--adtn-white);
    opacity: 0.9;
    transition: var(--transition);
}

.top-bar a:hover {
    opacity: 1;
    color: var(--adtn-gold);
}

.top-bar .contact-info span {
    margin-right: 20px;
}

.top-bar .contact-info i {
    margin-right: 6px;
    color: var(--adtn-gold);
}

.top-bar .social-links a {
    margin-left: 12px;
    font-size: 15px;
}

.top-bar .top-btn {
    background-color: var(--adtn-gold);
    color: var(--adtn-navy);
    padding: 4px 16px;
    border-radius: 4px;
    font-weight: 600;
    font-size: 12px;
    margin-left: 12px;
}

.top-bar .top-btn:hover {
    background-color: #c4a030;
    color: var(--adtn-navy);
}

/* === MAIN HEADER === */
.main-header {
    background-color: var(--adtn-white);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 1020;
    transition: var(--transition);
}

.main-header.scrolled {
    box-shadow: var(--shadow-md);
}

.main-header .navbar {
    padding: 0;
}

.main-header .navbar-brand {
    display: flex;
    align-items: center;
    padding: 10px 0;
    min-width: 0;
}

.main-header .navbar-brand img {
    height: 50px;
    margin-right: 12px;
    flex-shrink: 0;
}

.main-header .brand-text {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.main-header .brand-text .brand-name {
    font-size: 14px;
    font-weight: 700;
    color: var(--adtn-navy);
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.main-header .brand-text .brand-sub {
    font-size: 10px;
    color: var(--adtn-royal-blue);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.navbar-nav .nav-link {
    color: var(--adtn-navy) !important;
    font-weight: 500;
    font-size: 14px;
    padding: 24px 14px !important;
    position: relative;
    transition: var(--transition);
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: var(--adtn-royal-blue) !important;
}

.navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 3px;
    background-color: var(--adtn-gold);
    transition: var(--transition);
    border-radius: 2px;
}

.navbar-nav .nav-link:hover::after,
.navbar-nav .nav-link.active::after {
    width: 70%;
}

.navbar .nav-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.navbar .search-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid var(--adtn-border-gray);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    color: var(--adtn-navy);
    background: none;
    flex-shrink: 0;
}

.navbar .search-icon:hover {
    background-color: var(--adtn-light-gray);
    border-color: var(--adtn-royal-blue);
    color: var(--adtn-royal-blue);
}

.btn-join {
    background: linear-gradient(135deg, var(--adtn-gold), #c4a030);
    color: var(--adtn-navy);
    font-weight: 600;
    padding: 10px 24px;
    border-radius: 8px;
    border: none;
    transition: var(--transition);
    white-space: nowrap;
}

.btn-join:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.4);
    color: var(--adtn-navy);
}

/* === HERO SECTION === */
.hero-section {
    position: relative;
    width: 100%;
}

.hero-carousel .carousel-item {
    height: 100vh;
    min-height: 480px;
    max-height: 900px;
    position: relative;
}

.hero-carousel .carousel-item img {
    object-fit: cover;
    height: 100%;
    width: 100%;
}

.hero-carousel .carousel-item::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg,
        rgba(11, 35, 65, 0.85) 0%,
        rgba(0, 86, 179, 0.7) 50%,
        rgba(11, 35, 65, 0.5) 100%);
}

.hero-carousel .carousel-caption {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    max-width: 800px;
    text-align: center;
    padding: 0 20px;
    z-index: 2;
}

/* H1 reduced + fluid: scales smoothly with viewport instead of jumping at breakpoints */
.hero-carousel .carousel-caption h1 {
    font-size: var(--fs-h1-hero);
    font-weight: 800;
    color: var(--adtn-white);
    margin-bottom: 20px;
    text-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.hero-carousel .carousel-caption p {
    font-size: var(--fs-body-lead);
    color: rgba(255,255,255,0.9);
    margin-bottom: 30px;
    font-weight: 300;
}

.hero-carousel .carousel-caption .hero-badge {
    display: inline-block;
    background: rgba(212, 175, 55, 0.2);
    border: 1px solid var(--adtn-gold);
    color: var(--adtn-gold);
    padding: 6px 20px;
    border-radius: 50px;
    font-size: clamp(12px, 0.8vw + 10px, 14px);
    font-weight: 500;
    margin-bottom: 20px;
}

.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

.hero-buttons .btn {
    padding: 14px 32px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 15px;
    margin: 5px;
    transition: var(--transition);
}

.hero-buttons .btn-primary {
    background: var(--adtn-gold);
    border-color: var(--adtn-gold);
    color: var(--adtn-navy);
}

.hero-buttons .btn-primary:hover {
    background: #c4a030;
    border-color: #c4a030;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(212, 175, 55, 0.4);
}

.hero-buttons .btn-outline-light:hover {
    background: rgba(255,255,255,0.1);
    transform: translateY(-3px);
}

.hero-carousel .carousel-indicators {
    bottom: 40px;
}

.hero-carousel .carousel-indicators button {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid rgba(255,255,255,0.5);
    background: transparent;
    margin: 0 6px;
}

.hero-carousel .carousel-indicators button.active {
    background: var(--adtn-gold);
    border-color: var(--adtn-gold);
}

/* === SECTION STYLING === */
.section-padding {
    padding: clamp(40px, 4vw + 20px, 100px) 0;
}

.section-header {
    text-align: center;
    margin-bottom: clamp(28px, 3vw + 12px, 60px);
    padding: 0 12px;
}

.section-header .section-badge {
    display: inline-block;
    background: rgba(212, 175, 55, 0.1);
    color: var(--adtn-gold);
    padding: 6px 20px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 16px;
}

.section-header h2 {
    font-size: var(--fs-h2-section);
    font-weight: 700;
    margin-bottom: 16px;
}

.section-header .divider {
    width: 60px;
    height: 4px;
    background: var(--adtn-gold);
    margin: 0 auto 16px;
    border-radius: 2px;
}

.section-header p {
    font-size: var(--fs-body-lead);
    color: var(--adtn-text-muted);
    max-width: 600px;
    margin: 0 auto;
}

/* === QUICK ACTIONS === */
.quick-actions {
    margin-top: -60px;
    position: relative;
    z-index: 10;
}

.quick-action-card {
    background: var(--adtn-white);
    border-radius: var(--radius-md);
    padding: 28px 20px;
    text-align: center;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    height: 100%;
    border: 1px solid var(--adtn-border-gray);
}

.quick-action-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: var(--adtn-gold);
}

.quick-action-card .icon-box {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    font-size: 24px;
    transition: var(--transition);
}

.quick-action-card:hover .icon-box {
    transform: scale(1.1) rotate(5deg);
}

.quick-action-card h5 {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 4px;
}

.quick-action-card p {
    font-size: 12px;
    color: var(--adtn-text-muted);
    margin: 0;
}

/* === ABOUT PREVIEW === */
.about-preview {
    background: var(--adtn-light-gray);
}

.about-image {
    border-radius: var(--radius-lg);
    overflow: hidden;
    position: relative;
}

.about-image img {
    width: 100%;
    height: clamp(260px, 30vw, 500px);
    object-fit: cover;
}

.about-image .experience-badge {
    position: absolute;
    bottom: -20px;
    right: -20px;
    background: var(--adtn-gold);
    color: var(--adtn-navy);
    padding: 20px;
    border-radius: var(--radius-md);
    text-align: center;
    box-shadow: var(--shadow-lg);
}

.about-image .experience-badge h3 {
    font-size: 2rem;
    font-weight: 800;
    margin: 0;
    line-height: 1;
}

.about-image .experience-badge span {
    font-size: 12px;
    font-weight: 500;
}

.about-content .feature-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.about-content .feature-list li {
    padding: 10px 0;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    border-bottom: 1px solid var(--adtn-border-gray);
}

.about-content .feature-list li:last-child {
    border-bottom: none;
}

.about-content .feature-list i {
    color: var(--adtn-gold);
    font-size: 18px;
    margin-top: 4px;
}

/* === PRESIDENT MESSAGE === */
.president-card {
    background: var(--adtn-white);
    border-radius: var(--radius-lg);
    padding: clamp(20px, 3vw, 40px);
    box-shadow: var(--shadow-md);
    position: relative;
    overflow: hidden;
}

.president-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 5px;
    height: 100%;
    background: linear-gradient(180deg, var(--adtn-navy), var(--adtn-gold));
}

.president-card .president-img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--adtn-gold);
}

.president-card .quote-icon {
    font-size: 3rem;
    color: rgba(212, 175, 55, 0.2);
    line-height: 1;
}

/* === STATS SECTION === */
.stats-section {
    background: linear-gradient(135deg, var(--adtn-navy), var(--adtn-dark-navy));
    padding: clamp(40px, 5vw, 80px) 0;
    position: relative;
}

.stats-section .stat-item {
    text-align: center;
    color: var(--adtn-white);
    padding: 20px;
}

.stats-section .stat-item .stat-number {
    font-size: clamp(1.8rem, 1.2rem + 2vw, 3rem);
    font-weight: 800;
    color: var(--adtn-gold);
    margin-bottom: 8px;
}

.stats-section .stat-item .stat-label {
    font-size: 14px;
    opacity: 0.9;
    font-weight: 400;
}

.stats-section .stat-item .stat-icon {
    font-size: 2rem;
    margin-bottom: 12px;
    opacity: 0.8;
}

/* === SERVICES === */
.service-card {
    background: var(--adtn-white);
    border-radius: var(--radius-md);
    padding: clamp(20px, 2.5vw, 32px) clamp(16px, 2vw, 24px);
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    height: 100%;
    border: 1px solid var(--adtn-border-gray);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--adtn-navy), var(--adtn-gold));
    transform: scaleX(0);
    transform-origin: left;
    transition: var(--transition);
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.service-card .icon-box {
    width: 70px;
    height: 70px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 28px;
    transition: var(--transition);
}

.service-card:hover .icon-box {
    transform: scale(1.1) rotate(360deg);
}

.service-card h5 {
    font-size: 18px;
    margin-bottom: 12px;
}

.service-card p {
    font-size: 14px;
    color: var(--adtn-text-muted);
    margin: 0;
}

/* === NEWS CARDS === */
.news-card {
    background: var(--adtn-white);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    height: 100%;
    border: 1px solid var(--adtn-border-gray);
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.news-card .news-image {
    height: clamp(160px, 20vw, 220px);
    overflow: hidden;
}

.news-card .news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.news-card:hover .news-image img {
    transform: scale(1.05);
}

.news-card .news-content {
    padding: clamp(16px, 2vw, 24px);
}

.news-card .news-date {
    font-size: 13px;
    color: var(--adtn-text-muted);
    margin-bottom: 8px;
}

.news-card .news-date i {
    margin-right: 6px;
    color: var(--adtn-gold);
}

.news-card h5 {
    font-size: 17px;
    margin-bottom: 12px;
    line-height: 1.4;
}

.news-card p {
    font-size: 14px;
    color: var(--adtn-text-muted);
    margin-bottom: 16px;
}

.news-card .read-more {
    font-weight: 600;
    font-size: 14px;
    color: var(--adtn-royal-blue);
}

.news-card .read-more i {
    transition: var(--transition);
    margin-left: 4px;
}

.news-card .read-more:hover i {
    transform: translateX(4px);
}

/* === EVENTS === */
.event-card {
    background: var(--adtn-white);
    border-radius: var(--radius-md);
    padding: clamp(16px, 2vw, 24px);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border-left: 4px solid var(--adtn-gold);
    margin-bottom: 20px;
}

.event-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateX(5px);
}

.event-card .event-date-box {
    text-align: center;
    min-width: 70px;
    padding: 12px;
    background: var(--adtn-light-gray);
    border-radius: var(--radius-sm);
}

.event-card .event-date-box .day {
    font-size: 28px;
    font-weight: 800;
    color: var(--adtn-navy);
    line-height: 1;
}

.event-card .event-date-box .month {
    font-size: 13px;
    color: var(--adtn-royal-blue);
    font-weight: 600;
    text-transform: uppercase;
}

.event-card h5 {
    font-size: 18px;
    margin-bottom: 8px;
}

.event-card .event-meta {
    font-size: 13px;
    color: var(--adtn-text-muted);
}

.event-card .event-meta i {
    margin-right: 6px;
    color: var(--adtn-gold);
}

/* === TESTIMONIALS === */
.testimonials-section {
    background: var(--adtn-light-gray);
}

.testimonial-card {
    background: var(--adtn-white);
    border-radius: var(--radius-lg);
    padding: clamp(20px, 2.5vw, 32px);
    box-shadow: var(--shadow-md);
    position: relative;
}

.testimonial-card .quote-icon-top {
    font-size: 2.5rem;
    color: rgba(212, 175, 55, 0.15);
    position: absolute;
    top: 20px;
    right: 20px;
}

.testimonial-card .testimonial-text {
    font-size: 15px;
    font-style: italic;
    color: var(--adtn-text-muted);
    margin-bottom: 20px;
}

.testimonial-card .testimonial-author {
    display: flex;
    align-items: center;
    gap: 16px;
}

.testimonial-card .testimonial-author img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
}

.testimonial-card .testimonial-author h6 {
    margin-bottom: 2px;
    font-size: 15px;
}

.testimonial-card .testimonial-author span {
    font-size: 13px;
    color: var(--adtn-text-muted);
}

.testimonial-card .stars {
    color: var(--adtn-gold);
    font-size: 14px;
}

/* === PARTNERS === */
.partners-section {
    background: var(--adtn-white);
}

.partner-logo {
    padding: 20px;
    opacity: 0.5;
    transition: var(--transition);
    filter: grayscale(100%);
}

.partner-logo:hover {
    opacity: 1;
    filter: grayscale(0%);
}

.partner-logo img {
    max-height: 60px;
    width: auto;
}

/* === CTA BANNER === */
.cta-banner {
    background: linear-gradient(135deg, var(--adtn-navy), var(--adtn-dark-navy));
    padding: clamp(40px, 5vw, 80px) 0;
    position: relative;
    overflow: hidden;
}

.cta-banner::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    background: rgba(212, 175, 55, 0.05);
}

.cta-banner h2 {
    color: var(--adtn-white);
    font-size: var(--fs-cta);
    font-weight: 700;
}

.cta-banner p {
    color: rgba(255,255,255,0.8);
    font-size: var(--fs-body-lead);
}

/* === FOOTER === */
.main-footer {
    background-color: var(--adtn-navy);
    color: rgba(255,255,255,0.8);
    padding: clamp(40px, 5vw, 80px) 0 0;
}

.main-footer h5 {
    color: var(--adtn-white);
    font-weight: 600;
    margin-bottom: 24px;
    font-size: 18px;
    position: relative;
    padding-bottom: 12px;
}

.main-footer h5::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background: var(--adtn-gold);
    border-radius: 2px;
}

.main-footer a {
    color: rgba(255,255,255,0.7);
    transition: var(--transition);
}

.main-footer a:hover {
    color: var(--adtn-gold);
    padding-left: 4px;
}

.main-footer .footer-links {
    list-style: none;
    padding: 0;
}

.main-footer .footer-links li {
    margin-bottom: 10px;
}

.main-footer .footer-links a {
    display: flex;
    align-items: center;
    gap: 8px;
}

.main-footer .footer-links a i {
    font-size: 12px;
    color: var(--adtn-gold);
}

.main-footer .contact-info li {
    display: flex;
    gap: 12px;
    margin-bottom: 16px;
}

.main-footer .contact-info i {
    color: var(--adtn-gold);
    font-size: 18px;
    margin-top: 4px;
    min-width: 20px;
}

.main-footer .newsletter-form {
    display: flex;
    flex-wrap: wrap;
}

.main-footer .newsletter-form .form-control {
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    color: var(--adtn-white);
    border-radius: 8px 0 0 8px;
    padding: 12px 16px;
    flex: 1 1 160px;
    min-width: 0;
}

.main-footer .newsletter-form .form-control::placeholder {
    color: rgba(255,255,255,0.5);
}

.main-footer .newsletter-form .btn {
    background: var(--adtn-gold);
    color: var(--adtn-navy);
    font-weight: 600;
    border-radius: 0 8px 8px 0;
    padding: 12px 20px;
    flex-shrink: 0;
}

.main-footer .newsletter-form .btn:hover {
    background: #c4a030;
}

.main-footer .social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    color: var(--adtn-white);
    margin-right: 8px;
    margin-bottom: 8px;
    font-size: 16px;
    transition: var(--transition);
}

.main-footer .social-links a:hover {
    background: var(--adtn-gold);
    color: var(--adtn-navy);
    padding-left: 0;
    transform: translateY(-3px);
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding: 20px 0;
    margin-top: 40px;
    font-size: 14px;
    text-align: center;
}

.footer-bottom a {
    color: var(--adtn-gold);
}

/* === BACK TO TOP === */
.back-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: var(--adtn-gold);
    color: var(--adtn-navy);
    border: none;
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 999;
    box-shadow: var(--shadow-md);
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: #c4a030;
    transform: translateY(-3px);
}

/* === INNER PAGE BANNER === */
.page-banner {
    background: linear-gradient(135deg, var(--adtn-navy), var(--adtn-dark-navy));
    padding: clamp(40px, 6vw, 80px) 0 clamp(30px, 4vw, 60px);
    position: relative;
    overflow: hidden;
}

.page-banner::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: rgba(212, 175, 55, 0.05);
}

.page-banner::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: rgba(0, 86, 179, 0.1);
}

/* H1 reduced + fluid */
.page-banner h1 {
    color: var(--adtn-white);
    font-size: var(--fs-h1-page);
    font-weight: 700;
    position: relative;
    z-index: 1;
}

.page-banner .breadcrumb {
    background: transparent;
    padding: 0;
    margin: 12px 0 0;
    position: relative;
    z-index: 1;
    flex-wrap: wrap;
}

.page-banner .breadcrumb-item {
    color: rgba(255,255,255,0.7);
    font-size: 13px;
}

.page-banner .breadcrumb-item a {
    color: var(--adtn-gold);
}

.page-banner .breadcrumb-item.active {
    color: var(--adtn-white);
}

.page-banner .breadcrumb-item + .breadcrumb-item::before {
    color: rgba(255,255,255,0.4);
}

/* === MEMBER CARDS === */
.member-card {
    background: var(--adtn-white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    height: 100%;
    border: 1px solid var(--adtn-border-gray);
    text-align: center;
}

.member-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.member-card .member-photo {
    width: 100%;
    height: clamp(200px, 24vw, 280px);
    object-fit: cover;
}

.member-card .member-info {
    padding: clamp(16px, 2vw, 24px) clamp(14px, 1.5vw, 20px);
}

.member-card .member-info h5 {
    font-size: 18px;
    margin-bottom: 4px;
}

.member-card .member-info .position {
    color: var(--adtn-royal-blue);
    font-weight: 500;
    font-size: 14px;
    margin-bottom: 12px;
}

.member-card .member-info p {
    font-size: 13px;
    color: var(--adtn-text-muted);
    margin-bottom: 16px;
}

.member-card .social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--adtn-light-gray);
    color: var(--adtn-navy);
    margin: 0 4px;
    font-size: 14px;
    transition: var(--transition);
}

.member-card .social-links a:hover {
    background: var(--adtn-royal-blue);
    color: var(--adtn-white);
}

/* === GALLERY === */
.gallery-item {
    position: relative;
    border-radius: var(--radius-md);
    overflow: hidden;
    cursor: pointer;
    margin-bottom: 20px;
}

.gallery-item img {
    width: 100%;
    height: clamp(180px, 22vw, 250px);
    object-fit: cover;
    transition: var(--transition);
}

.gallery-item:hover img {
    transform: scale(1.05);
}

.gallery-item .gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(11, 35, 65, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
    flex-direction: column;
    gap: 8px;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-item .gallery-overlay i {
    font-size: 2rem;
    color: var(--adtn-white);
}

.gallery-item .gallery-overlay span {
    color: var(--adtn-white);
    font-size: 14px;
    font-weight: 500;
}

/* === CONTACT === */
.contact-info-card {
    background: var(--adtn-white);
    border-radius: var(--radius-md);
    padding: clamp(20px, 2.5vw, 28px);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    height: 100%;
    border: 1px solid var(--adtn-border-gray);
}

.contact-info-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-3px);
}

.contact-info-card .icon-box {
    width: 50px;
    height: 50px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    font-size: 22px;
}

.contact-info-card h6 {
    font-size: 16px;
    margin-bottom: 8px;
}

.contact-info-card p {
    font-size: 14px;
    color: var(--adtn-text-muted);
    margin: 0;
}

/* === LOGIN PAGE === */
.login-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--adtn-light-gray), var(--adtn-white));
    padding: 40px 20px;
}

.login-card {
    background: var(--adtn-white);
    border-radius: var(--radius-lg);
    padding: clamp(20px, 3vw, 40px);
    box-shadow: var(--shadow-lg);
    max-width: 450px;
    width: 100%;
    border: 1px solid var(--adtn-border-gray);
}

.login-card .login-logo {
    text-align: center;
    margin-bottom: 32px;
}

.login-card .login-logo img {
    height: 60px;
    margin-bottom: 16px;
}

.login-card .login-logo h4 {
    font-size: 20px;
    font-weight: 700;
}

/* === VERIFICATION === */
.verification-card {
    background: var(--adtn-white);
    border-radius: var(--radius-lg);
    padding: clamp(20px, 3vw, 40px);
    box-shadow: var(--shadow-md);
    max-width: 600px;
    margin: 0 auto;
}

.verification-result {
    background: var(--adtn-light-gray);
    border-radius: var(--radius-md);
    padding: clamp(16px, 2vw, 24px);
    margin-top: 24px;
    border: 1px solid var(--adtn-border-gray);
}

.verification-result .verified-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(16, 185, 129, 0.1);
    color: var(--adtn-success);
    padding: 8px 20px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 16px;
}

/* === CONSTITUTION VIEWER === */
.constitution-viewer {
    background: var(--adtn-white);
    border-radius: var(--radius-lg);
    padding: clamp(20px, 3vw, 40px);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--adtn-border-gray);
}

.constitution-viewer .toc {
    background: var(--adtn-light-gray);
    border-radius: var(--radius-md);
    padding: 24px;
    position: sticky;
    top: 100px;
}

/* ============================================================
 * RESPONSIVE — granular breakpoints layered on top of the
 * fluid clamp() tokens above. These handle layout/spacing/
 * density changes that clamp() alone can't (stacking, hiding
 * elements, adjusting heights, sticky behavior, etc).
 * ============================================================ */

/* Large desktops / wide screens */
@media (min-width: 1400px) {
    .hero-carousel .carousel-caption {
        max-width: 900px;
    }
}

/* Small laptops / large tablets landscape */
@media (max-width: 1199px) {
    .section-padding {
        padding: 60px 0;
    }
}

/* Tablets */
@media (max-width: 991px) {
    .top-bar .contact-info span {
        margin-right: 12px;
        font-size: 12px;
    }

    .main-header .navbar-brand img {
        height: 40px;
    }

    .main-header .brand-text .brand-name {
        font-size: 12px;
        max-width: 160px;
    }

    .hero-carousel .carousel-item {
        height: 80vh;
        min-height: 460px;
    }

    .section-padding {
        padding: 50px 0;
    }

    .navbar-nav .nav-link {
        padding: 12px 0 !important;
    }

    .navbar-nav .nav-link::after {
        display: none;
    }

    .quick-actions {
        margin-top: -30px;
    }

    .constitution-viewer .toc {
        position: static;
        margin-bottom: 24px;
    }

    .about-image .experience-badge {
        right: 10px;
        bottom: -16px;
        padding: 14px 18px;
    }
}

/* Large phones / small tablets portrait */
@media (max-width: 767px) {
    .top-bar {
        display: none;
    }

    .top-bar-mobile {
        display: flex !important;
        background: var(--adtn-navy);
        padding: 8px 0;
        justify-content: center;
        gap: 16px;
        flex-wrap: wrap;
        text-align: center;
    }

    .main-header .navbar-brand img {
        height: 34px;
    }

    .main-header .brand-text .brand-name {
        font-size: 11px;
        max-width: 130px;
    }

    .main-header .brand-text .brand-sub {
        font-size: 9px;
    }

    .hero-carousel .carousel-item {
        height: 70vh;
        min-height: 420px;
    }

    .hero-carousel .carousel-caption {
        padding: 0 16px;
    }

    .hero-buttons .btn {
        padding: 10px 20px;
        font-size: 13px;
        width: 100%;
        max-width: 260px;
    }

    .section-header {
        margin-bottom: 32px;
    }

    .page-banner {
        padding: 50px 0 32px;
    }

    .stats-section .stat-item {
        padding: 12px;
    }

    .president-card {
        padding: 20px;
    }

    .president-card .president-img {
        width: 90px;
        height: 90px;
    }

    .main-footer {
        padding: 44px 0 0;
    }

    .main-footer .newsletter-form .form-control,
    .main-footer .newsletter-form .btn {
        border-radius: 8px;
    }

    .main-footer .newsletter-form .btn {
        margin-top: 8px;
        width: 100%;
    }

    .event-card {
        flex-direction: column;
    }

    .event-card .event-date-box {
        margin-bottom: 12px;
        min-width: 100%;
    }
}

/* Standard phones */
@media (max-width: 575px) {
    body {
        font-size: 15px;
    }

    .hero-carousel .carousel-item {
        height: 60vh;
        min-height: 380px;
    }

    .hero-carousel .carousel-caption .hero-badge {
        padding: 5px 14px;
    }

    .quick-action-card {
        padding: 18px 14px;
    }

    .quick-action-card .icon-box {
        width: 48px;
        height: 48px;
        font-size: 18px;
    }

    .about-image .experience-badge {
        position: static;
        margin-top: -30px;
        display: inline-block;
    }

    .login-card,
    .verification-card,
    .constitution-viewer {
        padding: 18px;
    }

    .testimonial-card {
        padding: 20px;
    }

    .contact-info-card {
        padding: 18px;
    }

    .back-to-top {
        width: 38px;
        height: 38px;
        font-size: 16px;
        bottom: 16px;
        right: 16px;
    }
}

/* Small / narrow phones */
@media (max-width: 400px) {
    .hero-carousel .carousel-item {
        height: 55vh;
        min-height: 340px;
    }

    .hero-buttons .btn {
        padding: 9px 16px;
        font-size: 12px;
    }

    .main-header .brand-text .brand-name {
        max-width: 100px;
        font-size: 10px;
    }

    .top-bar .top-btn {
        display: none;
    }

    .event-card .event-date-box .day {
        font-size: 22px;
    }

    .member-card .member-photo {
        height: 190px;
    }
}

/* Landscape phones (short viewport height) */
@media (max-height: 480px) and (orientation: landscape) {
    .hero-carousel .carousel-item {
        height: auto;
        min-height: 100vh;
        padding: 60px 0;
    }

    .main-header {
        position: relative;
    }
}

/* Print */
@media print {
    .main-header, .top-bar, .back-to-top, .hero-buttons, .main-footer,
    .btn-join, .search-icon, .newsletter-form {
        display: none !important;
    }

    body {
        color: #000;
    }
}

/* === UTILITY CLASSES === */
.bg-navy { background-color: var(--adtn-navy); }
.bg-gold { background-color: var(--adtn-gold); }
.text-gold { color: var(--adtn-gold); }
.text-navy { color: var(--adtn-navy); }

/* === SEARCH MODAL === */
.search-modal .modal-content {
    background: transparent;
    border: none;
    box-shadow: none;
}

.search-modal .modal-body {
    padding: 2rem;
}

.search-modal .form-control {
    padding: 16px 20px;
    font-size: 18px;
    border-radius: var(--radius-md);
    border: 2px solid var(--adtn-gold);
    background: var(--adtn-white);
}

@media (max-width: 575px) {
    .search-modal .modal-body {
        padding: 1rem;
    }

    .search-modal .form-control {
        padding: 12px 16px;
        font-size: 16px;
    }
}

/* === DROPDOWN === */
.dropdown-menu {
    border: none;
    box-shadow: var(--shadow-lg);
    border-radius: var(--radius-sm);
    padding: 8px;
    margin-top: 8px !important;
}

.dropdown-menu .dropdown-item {
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    transition: var(--transition);
}

.dropdown-menu .dropdown-item:hover {
    background: var(--adtn-light-gray);
    color: var(--adtn-royal-blue);
}

.dropdown-menu .dropdown-item i {
    margin-right: 8px;
    width: 20px;
    color: var(--adtn-gold);
}

/* === ANIMATIONS === */
[data-aos] {
    pointer-events: none;
}

[data-aos].aos-animate {
    pointer-events: auto;
}