/* Custom CSS for Grace Nuggets Landing Page */

:root {
    --primary-color: #000000;
    --secondary-color: #fbbf24;
    --dark-color: #1e293b;
    --light-color: #f8fafc;
    --text-color: #334155;
    --heading-color: #1e293b;
}

html, body {
    height: 100%;
}

body {
    font-family: 'Poppins', sans-serif;
    color: var(--text-color);
    background-color: #ffffff;
    overflow-x: hidden;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Navbar Styles */
.navbar {
    transition: all 0.3s ease;
    padding: 1rem 0;
    background-color: #000000;
}

.navbar.scrolled {
    background-color: #000000 !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
}

.navbar.scrolled .navbar-brand {
    color: #ffffff !important;
}

/* Desktop only - white nav links */
@media (min-width: 992px) {
    .navbar.scrolled .nav-link {
        color: #ffffff !important;
    }
}

.navbar-brand {
    font-weight: 600;
    color: #ffffff;
    transition: color 0.3s ease;
}

.navbar-brand .brand-text {
    font-size: 1.2rem;
    font-weight: 600;
    color: #ffffff;
    letter-spacing: 0.5px;
}

.navbar-brand img {
    display: block;
}

.nav-link {
    font-weight: 500;
    color: #ffffff !important;
    position: relative;
    padding: 0.5rem 1rem !important;
    transition: color 0.3s ease;
}

/* Mobile nav link color override */
@media (max-width: 991.98px) {
    .nav-link {
        color: #333333 !important;
    }
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 50%;
    background-color: #ffffff;
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.navbar.scrolled .nav-link::after {
    background-color: #ffffff;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: calc(100% - 2rem);
}

.nav-link.btn-outline-primary {
    border: 1px solid #ffffff;
    border-radius: 999px;
    color: #ffffff !important;
    padding: 0.45rem 1.25rem !important;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.nav-link.btn-outline-primary:hover {
    background: #ffffff;
    color: #000000 !important;
}

/* Global button styling */
.btn,
.btn-primary,
.btn-secondary,
.btn-outline-primary,
.btn-outline-secondary {
    background-color: #000000;
    border-color: #000000;
    color: #ffffff !important;
    transition: background-color 0.3s ease, color 0.3s ease, box-shadow 0.3s ease;
}

.btn:hover,
.btn-primary:hover,
.btn-secondary:hover,
.btn-outline-primary:hover,
.btn-outline-secondary:hover {
    background-color: #1a1a1a;
    border-color: #1a1a1a;
    color: #ffffff !important;
    box-shadow: 0 6px 18px rgba(0,0,0,0.2);
}

/* Navbar toggler for mobile - white when transparent, dark when scrolled */
.navbar-toggler {
    border: none;
    padding: 0.25rem 0.5rem;
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 1%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

.navbar.scrolled .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 1%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") !important;
}

.navbar.scrolled .nav-link.btn-outline-primary {
    border-color: #ffffff !important;
    color: #ffffff !important;
}

.navbar.scrolled .nav-link.btn-outline-primary:hover {
    background: #ffffff !important;
    color: #000000 !important;
}

/* Hero Section */
.hero-section {
    position: relative;
    height: 100vh;
    min-height: 600px;
    background: url('../img/home.jpg') center/cover no-repeat;
    display: flex;
    align-items: center;
    color: white;
    margin-bottom: 0;
}

/* Welcome Section - reduce gap with hero */
.welcome-section {
    margin-top: -20px;
}

/* Subscription Modal Styles */
.modal-content {
    border-radius: 15px;
    border: none;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.modal-header {
    padding: 1rem 1rem 0 1rem;
}

.modal-body {
    padding: 0 2rem 2rem 2rem;
}

.modal-title {
    font-weight: 700;
    color: #333;
    font-size: 1.1rem;
    letter-spacing: 0.5px;
}

/* Auth pages */
.auth-page {
    background-color: #f8fafc;
    min-height: 100vh;
    padding-top: 120px;
    padding-bottom: 80px;
}

.auth-card {
    background-color: #ffffff;
    border-radius: 24px;
    padding: 36px 40px;
}

.auth-logo {
    height: 64px;
}

.auth-title {
    font-size: 1.85rem;
    font-weight: 600;
    color: #0f172a;
}

.auth-card .form-control,
.auth-card .form-select {
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    padding: 12px 14px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.auth-card .form-control:focus,
.auth-card .form-select:focus {
    border-color: #0f172a;
    box-shadow: 0 0 0 3px rgba(15, 23, 42, 0.08);
}

.password-rules {
    list-style: disc;
    padding-left: 1.25rem;
    font-size: 0.85rem;
    color: #64748b;
}

.auth-card .btn-primary {
    border-radius: 999px;
    padding: 12px 18px;
    font-weight: 600;
}

.auth-success .alert {
    border-radius: 16px;
}

.auth-success .btn {
    border-radius: 999px;
}

.subscription-form .form-control {
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    padding: 12px 15px;
    font-size: 16px;
    transition: border-color 0.3s ease;
    color: #000000;
    background-color: #ffffff;
}

.subscription-form .form-control:focus {
    border-color: #000000;
    box-shadow: 0 0 0 0.2rem rgba(0, 0, 0, 0.1);
}

.subscription-form .form-control::placeholder {
    color: #999;
    font-weight: 400;
}

.footer-subscribe-form input[type="email"],
.footer-subscribe-form input[type="text"] {
    color: #000000;
    background-color: #ffffff;
}

/* Ensure footer subscribe inputs are readable on white background */
.footer-subscribe-form .form-control {
    color: #000000;
    background-color: #ffffff;
    border: 1px solid #e5e7eb;
    caret-color: #000000;
}

.btn-subscribe {
    background: #000000;
    color: white;
    border: none;
    border-radius: 8px;
    padding: 12px 20px;
    font-weight: 600;
    font-size: 14px;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
}

.btn-subscribe:hover {
    background: #333333;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.btn-no-thanks {
    background: #000000;
    color: #ffffff;
    border: none;
    font-weight: 600;
    font-size: 14px;
    letter-spacing: 0.5px;
    text-decoration: none;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.btn-no-thanks:hover {
    background: #1a1a1a;
    color: #ffffff;
}

.btn-close {
    font-size: 1.2rem;
    opacity: 0.7;
}

.btn-close:hover {
    opacity: 1;
}

.hero-section .overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.7));
}

/* Section Styles */
.section-title {
    font-weight: 700;
    color: var(--heading-color);
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    width: 50%;
    height: 3px;
    background: var(--primary-color);
    bottom: -10px;
    left: 0;
}

/* Resource Cards */
.resource-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: none;
    border-radius: 1rem;
    overflow: hidden;
}

.resource-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.icon-box {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: #000000;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.icon-box i {
    font-size: 1.5rem;
    color: white;
}

/* Testimonial Styles */
.testimony-card {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    padding: 2rem;
}

.testimony-text {
    font-size: 1.25rem;
    font-style: italic;
    margin-bottom: 1.5rem;
}

.testimony-author {
    font-weight: 600;
    color: var(--primary-color);
}

/* Carousel Controls */
.carousel-control-prev,
.carousel-control-next {
    width: 10%;
    opacity: 0.8;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    background-color: rgba(0, 0, 0, 0.6);
    border-radius: 50%;
    padding: 1.25rem;
    background-size: 50%;
}

@media (max-width: 767.98px) {
    .carousel-control-prev,
    .carousel-control-next {
        width: 15%;
    }
    
    .carousel-control-prev-icon,
    .carousel-control-next-icon {
        padding: 1rem;
    }
}

/* Contact Form */
.contact-form .form-control {
    border: 2px solid #e2e8f0;
    padding: 0.75rem;
    border-radius: 0.5rem;
}

.contact-form .form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(37, 99, 235, 0.1);
}

/* FAQ Styles */
.faq-item {
    background: white;
    border-radius: 0.75rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    overflow: hidden;
    margin-bottom: 1rem;
    transition: all 0.3s ease;
}

.faq-item:hover {
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.faq-question {
    padding: 1.5rem;
    cursor: pointer;
    display: flex;
    justify-content: between;
    align-items: center;
    background: white;
    border: none;
    transition: background-color 0.3s ease;
}

.faq-question:hover {
    background: #f8fafc;
}

.faq-question h5 {
    margin: 0;
    font-weight: 600;
    color: var(--heading-color);
    flex: 1;
}

.faq-question .arrow {
    font-size: 1.2rem;
    color: #000000;
    transition: transform 0.3s ease;
    margin-left: 1rem;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
    background: #f8fafc;
}

.faq-answer.open {
    max-height: 200px;
    padding: 1.5rem;
}

.faq-answer p {
    margin: 0;
    color: var(--text-color);
    line-height: 1.6;
}

/* Social Links */
.social-links a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--primary-color);
    color: white;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.social-links a:hover {
    transform: translateY(-3px);
    background: var(--dark-color);
}

/* Footer */
.footer {
    background-color: #000;
    color: #ffffff;
    padding: 60px 0 30px;
    margin-top: auto; /* Sticky footer: push to bottom when content is short */
    flex-shrink: 0;
}

.footer h3 {
    font-size: 24px;
    font-weight: 600;
}

.footer h4 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 20px;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer a { color: #ffffff; text-decoration: none; }
.footer a:hover { color: #e5e7eb; text-decoration: underline; }

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: #ffffff;
    text-decoration: none;
    transition: color 0.3s ease;
    opacity: 0.8;
}

.footer-links a:hover {
    color: #ffffff;
    opacity: 1;
}

.social-links .whatsapp-link {
    color: #ffffff;
    text-decoration: none;
    font-size: 20px;
    transition: all 0.25s ease;
    background: #000000; /* Black by default */
    width: 44px;
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.social-links .whatsapp-link:hover {
    color: #ffffff;
    text-decoration: none;
    background: #25D366; /* WhatsApp green on hover */
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(37, 211, 102, 0.4); /* Green shadow on hover */
}

.social-links .social-icon {
    color: #ffffff;
    text-decoration: none;
    font-size: 18px;
    transition: all 0.25s ease;
    background: #000000;
    width: 44px;
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.social-links .social-icon:hover {
    color: #ffffff;
    text-decoration: none;
    transform: translateY(-2px);
}

.social-links .facebook-link:hover {
    background: #1877f2;
    box-shadow: 0 6px 16px rgba(24, 119, 242, 0.4);
}

.social-links .twitter-link:hover {
    background: #000000;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.5);
}

.social-links .youtube-link:hover {
    background: #ff0000;
    box-shadow: 0 6px 16px rgba(255, 0, 0, 0.4);
}

.social-links .instagram-link:hover {
    background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
    box-shadow: 0 6px 16px rgba(225, 48, 108, 0.4);
}

.footer-subscribe-form .form-control:focus {
    transform: translateY(-3px) scale(1.03);
    box-shadow: 0 8px 24px rgba(37,211,102,0.22);
    color: #000000; /* black text when focused */
    background-color: #ffffff; /* keep white background */
    border-color: #000000; /* emphasize focus on dark theme */
}

.footer-subscribe-form .form-control::placeholder {
    color: #6b7280; /* slate-500 */
    opacity: 1;
}

/* Footer subscribe button and stacked inputs */
.footer-subscribe-form .btn-subscribe {
    background: #000000;
    color: #ffffff;
    border: 1px solid #000000;
    padding: 10px 16px;
    margin-left: 8px;
    border-radius: 6px;
    font-weight: 600;
}

.footer-subscribe-form .btn-subscribe:hover {
    background: #1a1a1a;
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(0,0,0,0.2);
}

.footer-subscribe-form .mb-2 .form-control {
    margin-bottom: 8px;
}

@media (max-width: 767.98px) {
    .footer-subscribe-form .input-group {
        display: flex;
        flex-direction: column;
    }
    .footer-subscribe-form .input-group .form-control {
        width: 100%;
        border-radius: 0.375rem;
    }
    .footer-subscribe-form .btn-subscribe {
        margin-left: 0;
        margin-top: 8px;
        width: 100%;
        border-radius: 0.375rem;
    }
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.8);
}

/* Buttons */
.btn {
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-primary {
    background: var(--primary-color);
    border: 2px solid #000000;
    color: #ffffff;
}

.btn-primary:hover {
    background: #1a1a1a;
    border-color: #1a1a1a;
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.btn-outline-primary {
    border: 2px solid #000000;
    color: #ffffff;
    background: #000000;
}

.btn-outline-primary:hover {
    background: #1a1a1a;
    border-color: #1a1a1a;
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.btn-outline-light {
    border: 2px solid #000000;
    color: #ffffff;
    background: #000000;
}

.btn-outline-light:hover {
    background: #1a1a1a;
    border-color: #1a1a1a;
    color: #ffffff;
    transform: translateY(-2px);
}

.btn-dark {
    background: #000000;
    border: 2px solid #000000;
    color: #ffffff;
}

.btn-dark:hover {
    background: #333333;
    border-color: #333333;
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.btn-signup {
    background-color: #ffffff !important;
    color: #000000 !important;
    border: 2px solid #000000;
}

.btn-signup:hover {
    background-color: #f3f4f6 !important;
    color: #000000 !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

/* Auth pages */
.auth-wrapper {
    min-height: calc(100vh - 80px);
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f5f7fb;
    padding: 120px 16px 60px;
}

.auth-container {
    max-width: 420px;
    width: 100%;
}

.auth-box {
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
}

.auth-header {
    border-bottom: 1px solid #e2e8f0;
    padding: 32px 24px 24px;
}

.auth-header .auth-lockup {
    height: 48px;
    max-width: 100%;
}

.auth-header h1 {
    color: #0f172a;
    font-weight: 600;
}

.auth-body {
    padding: 32px 24px;
    background: #ffffff;
}

.auth-body .form-control {
    padding: 0.85rem 1rem;
    border-radius: 8px;
}

.auth-body .form-control:focus {
    border-color: #000000;
    box-shadow: 0 0 0 0.2rem rgba(0,0,0,0.08);
}

.auth-body .alert {
    border-radius: 12px;
}

.auth-body .alert-danger {
    border: 1px solid #fecdd3;
    background-color: #fef2f2;
    color: #991b1b;
}

.auth-alert-icon {
    width: 36px;
    height: 36px;
    border-radius: 12px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: #dc2626;
    color: #ffffff;
}

.auth-body .alert-success {
    border: 1px solid #bbf7d0;
    background-color: #f0fdf4;
    color: #166534;
}

.auth-illustration-circle {
    width: 88px;
    height: 88px;
    border-radius: 50%;
    background: #eff6ff;
    border: 3px solid #dbeafe;
    display: flex;
    align-items: center;
    justify-content: center;
}

.auth-footer {
    border-top: 1px solid #e2e8f0;
    padding: 20px 24px;
}

.auth-footer a {
    color: #0f172a;
}

.auth-footer a:hover {
    color: #000000;
}

/* Login button specific styling */
.nav-link.btn-outline-primary {
    border: 2px solid #000000;
    color: #ffffff;
    background: #000000;
}

.nav-link.btn-outline-primary:hover {
    background: #1a1a1a;
    border-color: #1a1a1a;
    color: #ffffff !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

/* Scroll to Top Button */
#scrollToTop {
    position: fixed;
    bottom: 20px;
    right: 20px;
    display: none;
    width: 45px;
    height: 45px;
    z-index: 99;
    border: none;
    padding: 0;
    background: #000000;
    color: #ffffff;
    border-radius: 50%;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

#scrollToTop:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
}

#scrollToTop:active,
#scrollToTop.active {
    background: #ffffff;
    color: #000000;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

#scrollToTop i {
    font-size: 16px;
    line-height: 1;
}

/* Animations */
[data-aos] {
    pointer-events: none;
}
[data-aos].aos-animate {
    pointer-events: auto;
}

/* Responsive Design */
@media (max-width: 991.98px) {
    .navbar .navbar-collapse {
        background: #ffffff !important;
        padding: 1rem;
        border-radius: 0.5rem;
        box-shadow: 0 4px 15px rgba(0,0,0,0.15);
        margin-top: 0.5rem;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        z-index: 1000;
    }
    
    .navbar .navbar-nav {
        background: transparent;
        padding: 0;
        border-radius: 0;
        box-shadow: none;
    }
    
    .navbar .navbar-nav .nav-item {
        border-bottom: 1px solid rgba(0,0,0,0.05);
    }
    
    .navbar .navbar-nav .nav-item:last-child {
        border-bottom: none;
    }
    
    #mainNav .navbar-nav .nav-link,
    #mainNav.scrolled .navbar-nav .nav-link,
    #mainNav.always-dark .navbar-nav .nav-link,
    #mainNav.navbar.scrolled .navbar-nav .nav-link,
    .navbar .navbar-nav .nav-link,
    .navbar.scrolled .navbar-nav .nav-link,
    .navbar.always-dark .navbar-nav .nav-link,
    nav.navbar .navbar-nav .nav-link,
    .navbar-collapse .navbar-nav .nav-link,
    .navbar-collapse.show .navbar-nav .nav-link,
    .navbar-collapse.collapsing .navbar-nav .nav-link {
        color: #333333 !important;
        padding: 0.75rem 1rem !important;
        display: block;
        background-color: transparent;
    }
    
    #mainNav .navbar-nav .nav-link:hover,
    #mainNav .navbar-nav .nav-link:focus,
    .navbar .navbar-nav .nav-link:hover,
    .navbar .navbar-nav .nav-link:focus {
        background-color: #f8f9fa;
        color: #000000 !important;
    }
    
    .navbar .navbar-nav .nav-link::after {
        display: none;
    }
    
    #mainNav .navbar-nav .nav-link.btn-outline-primary,
    .navbar .navbar-nav .nav-link.btn-outline-primary {
        background: #000000 !important;
        color: #ffffff !important;
        border: none;
        border-radius: 0.5rem;
        text-align: center;
        margin: 0.5rem 0;
    }
    
    #mainNav .navbar-nav .nav-link.btn-outline-primary:hover,
    .navbar .navbar-nav .nav-link.btn-outline-primary:hover {
        background: #1a1a1a !important;
        color: #ffffff !important;
    }
    
    .hero-section {
        height: auto;
        padding: 100px 0;
    }
}

@media (max-width: 767.98px) {
    .section-title::after {
        width: 100%;
    }
    
    .quick-links {
        text-align: center;
        margin-top: 1rem;
    }
}

/* Accessibility */
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* ============================================
   COMPREHENSIVE MOBILE RESPONSIVE STYLES
   ============================================ */

/* Extra Large Devices (1200px and up) */
@media (min-width: 1200px) {
    .container {
        max-width: 1140px;
    }
}

/* Large Devices / Tablets Landscape (992px - 1199px) */
@media (max-width: 1199.98px) {
    .hero-section h1 {
        font-size: 2.75rem;
    }
    
    .hero-section .lead {
        font-size: 1.1rem;
    }
}

/* Medium Devices / Tablets (768px - 991px) */
@media (max-width: 991.98px) {
    /* Hero adjustments */
    .hero-section {
        min-height: 500px;
        height: auto;
        padding: 120px 0 80px;
    }
    
    .hero-section h1 {
        font-size: 2.25rem;
        line-height: 1.2;
    }
    
    .hero-section .lead {
        font-size: 1rem;
        margin-bottom: 2rem;
    }
    
    .hero-section .btn-lg {
        padding: 0.75rem 1.5rem;
        font-size: 0.95rem;
    }
    
    /* Section spacing */
    section {
        padding-top: 3rem;
        padding-bottom: 3rem;
    }
    
    .section-title {
        font-size: 1.75rem;
    }
    
    /* About section */
    .about-section .col-lg-6:first-child {
        margin-bottom: 2rem;
    }
    
    .about-section img {
        max-height: 400px;
        object-fit: cover;
    }
    
    /* Footer */
    .footer {
        padding: 40px 0 20px;
    }
    
    .footer .col-lg-3 {
        margin-bottom: 2rem;
    }
    
    /* Auth pages */
    .auth-page {
        padding-top: 100px;
        padding-bottom: 60px;
    }
    
    .auth-card {
        padding: 28px 24px;
    }
}

/* Small Devices / Phones Landscape (576px - 767px) */
@media (max-width: 767.98px) {
    /* General typography */
    body {
        font-size: 15px;
    }
    
    h1, .h1 { font-size: 1.75rem; }
    h2, .h2 { font-size: 1.5rem; }
    h3, .h3 { font-size: 1.25rem; }
    h4, .h4 { font-size: 1.1rem; }
    
    .display-3 {
        font-size: 2rem;
    }
    
    .lead {
        font-size: 1rem;
        line-height: 1.6;
    }
    
    /* Container padding */
    .container {
        padding-left: 20px;
        padding-right: 20px;
    }
    
    /* Hero section */
    .hero-section {
        min-height: 450px;
        padding: 100px 0 60px;
    }
    
    .hero-section h1 {
        font-size: 1.75rem;
        margin-bottom: 1rem;
    }
    
    .hero-section .lead {
        font-size: 0.95rem;
        margin-bottom: 1.5rem;
        padding: 0 10px;
    }
    
    .hero-section .btn {
        display: block;
        width: 100%;
        margin-bottom: 0.75rem;
    }

    .hero-section .btn.btn-primary,
    .hero-section .btn.btn-outline-light {
        background: #ffffff !important;
        color: #000000 !important;
        border-color: #ffffff !important;
    }

    .hero-section .btn.btn-primary:hover,
    .hero-section .btn.btn-outline-light:hover {
        background: #f0f0f0 !important;
        color: #000000 !important;
        border-color: #f0f0f0 !important;
    }
    
    .hero-section .btn.me-3 {
        margin-right: 0 !important;
    }
    
    /* Sections */
    section {
        padding-top: 2.5rem;
        padding-bottom: 2.5rem;
    }
    
    .section-title {
        font-size: 1.5rem;
        text-align: center;
    }
    
    .section-title::after {
        left: 50%;
        transform: translateX(-50%);
    }
    
    /* About section icons */
    .about-section .col-6.col-md-3 {
        margin-bottom: 1.5rem;
    }
    
    .about-section .display-4 {
        font-size: 2rem;
    }
    
    .about-section h5 {
        font-size: 0.85rem;
    }
    
    /* Resource cards */
    .resource-card {
        margin-bottom: 1.5rem;
    }
    
    .resource-card .card-body {
        padding: 1.25rem;
    }
    
    .icon-box {
        width: 50px;
        height: 50px;
        margin-bottom: 1rem;
    }
    
    .icon-box i {
        font-size: 1.25rem;
    }
    
    /* Testimonials */
    .testimony-card {
        padding: 1.5rem;
    }
    
    .testimony-text {
        font-size: 1rem;
    }
    
    /* FAQ */
    .faq-question {
        padding: 1rem;
    }
    
    .faq-question h5 {
        font-size: 0.95rem;
    }
    
    .faq-answer.open {
        padding: 1rem;
    }
    
    /* Footer */
    .footer {
        padding: 30px 0 20px;
        text-align: center;
    }
    
    .footer h3, .footer h4 {
        font-size: 1.1rem;
    }
    
    .footer .col-lg-3 {
        margin-bottom: 1.5rem;
    }
    
    .footer-links {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 0.5rem 1.5rem;
    }
    
    .footer-links li {
        margin-bottom: 0.5rem;
    }
    
    .footer-subscribe-form {
        max-width: 100%;
    }
    
    .footer-subscribe-form .row.mb-2 .col-6 {
        flex: 0 0 100%;
        max-width: 100%;
        margin-bottom: 0.5rem;
    }
    
    .social-links {
        justify-content: center;
    }
    
    /* Buttons */
    .btn {
        padding: 0.65rem 1.25rem;
        font-size: 0.9rem;
    }
    
    .btn-lg {
        padding: 0.75rem 1.5rem;
        font-size: 1rem;
    }
    
    /* Modals */
    .modal-dialog {
        margin: 1rem;
        max-width: calc(100% - 2rem);
    }
    
    .modal-body {
        padding: 1.5rem;
    }
    
    .modal-title {
        font-size: 1rem;
    }
    
    /* Auth pages */
    .auth-page {
        padding-top: 80px;
        padding-bottom: 40px;
    }
    
    .auth-card {
        padding: 24px 20px;
        border-radius: 16px;
    }
    
    .auth-logo {
        height: 48px;
    }
    
    .auth-title {
        font-size: 1.5rem;
    }
    
    .auth-wrapper {
        padding: 100px 16px 40px;
    }
    
    .auth-header {
        padding: 24px 20px 20px;
    }
    
    .auth-body {
        padding: 24px 20px;
    }
    
    .auth-footer {
        padding: 16px 20px;
    }
    
    /* Scroll to top */
    #scrollToTop {
        width: 40px;
        height: 40px;
        bottom: 16px;
        right: 16px;
    }
    
    /* Images */
    .img-fluid {
        max-width: 100%;
        height: auto;
    }
    
    /* Tables */
    .table-responsive {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
}

/* Extra Small Devices / Phones Portrait (below 576px) */
@media (max-width: 575.98px) {
    /* Even smaller typography */
    h1, .h1 { font-size: 1.5rem; }
    h2, .h2 { font-size: 1.35rem; }
    
    .display-3 {
        font-size: 1.75rem;
    }
    
    /* Hero */
    .hero-section {
        min-height: 400px;
        padding: 90px 0 50px;
    }
    
    .hero-section h1 {
        font-size: 1.5rem;
    }
    
    .hero-section .lead {
        font-size: 0.9rem;
    }
    
    /* Container */
    .container {
        padding-left: 15px;
        padding-right: 15px;
    }
    
    /* Cards */
    .card {
        border-radius: 0.75rem;
    }
    
    .card-body {
        padding: 1rem;
    }
    
    /* About icons - 2 per row on very small screens */
    .about-section .row.g-4 {
        gap: 1rem;
    }
    
    /* Footer subscribe - stack names vertically */
    .footer-subscribe-form .col-6 {
        flex: 0 0 100%;
        max-width: 100%;
    }
    
    .footer-subscribe-form .col-6:first-child {
        margin-bottom: 0.5rem;
    }
    
    /* Modals */
    .modal-body {
        padding: 1rem;
    }
    
    .subscription-form .form-control {
        padding: 10px 12px;
        font-size: 16px;
    }
    
    /* Auth */
    .auth-card {
        padding: 20px 16px;
    }
    
    .password-rules {
        font-size: 0.8rem;
    }
}

/* Touch-friendly improvements */
@media (hover: none) and (pointer: coarse) {
    /* Increase tap targets */
    .nav-link {
        padding: 0.75rem 1rem !important;
        min-height: 44px;
    }
    
    .btn {
        min-height: 44px;
    }
    
    .footer-links a {
        display: inline-block;
        padding: 0.5rem 0;
        min-height: 44px;
        line-height: 1.5;
    }
    
    /* Remove hover effects on touch devices */
    .resource-card:hover,
    .faq-item:hover,
    .btn:hover {
        transform: none;
    }
}

/* Landscape mode for phones */
@media (max-width: 767.98px) and (orientation: landscape) {
    .hero-section {
        min-height: 350px;
        padding: 80px 0 40px;
    }
    
    .hero-section h1 {
        font-size: 1.5rem;
        margin-bottom: 0.75rem;
    }
    
    .hero-section .lead {
        margin-bottom: 1rem;
    }
    
    .hero-section .btn {
        display: inline-block;
        width: auto;
        margin-right: 0.5rem;
        margin-bottom: 0;
    }
}

/* High contrast and accessibility */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    [data-aos] {
        opacity: 1 !important;
        transform: none !important;
    }
}

/* Print styles */
@media print {
    .navbar,
    .footer,
    #scrollToTop,
    .modal {
        display: none !important;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.5;
    }
    
    .hero-section {
        height: auto;
        min-height: auto;
        padding: 20px 0;
        background: none !important;
    }
    
    .hero-section .overlay {
        display: none;
    }
    
    .hero-section h1,
    .hero-section p {
        color: #000 !important;
    }
}