/* N&N Overseas Students Consulting - Master Stylesheet
    Cleaned, Optimized & Mobile-App Responsive Version 
*/

:root {
    --primary-color: #d4af37; /* Modern Gold */
    --primary-dark: #b8962d;
    --dark-bg: #1a1a1a;
    --text-dark: #1a1a1a;
    --text-gray: #4a4a4a;
    --soft-primary: rgba(212, 175, 55, 0.1);
    --light-soft-bg: #fcfaf5;
    --transition-smooth: 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

/* --- Global Styles --- */
body { 
    font-family: 'Inter', 'Segoe UI', sans-serif; 
    color: var(--text-dark); 
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

.text-primary-gradient {
    background: linear-gradient(45deg, #f1c40f, #d4af37);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.fw-black { font-weight: 900; }

/* --- Navigation & Mobile App Feel --- */
.navbar { 
    background: rgba(255,255,255,0.95); 
    backdrop-filter: blur(10px); 
    box-shadow: 0 2px 15px rgba(0,0,0,0.05);
}

.nav-link { font-weight: 500; color: #333; transition: 0.3s; }
.nav-link:hover { color: var(--primary-color); }

/* --- Section Titles & Dividers --- */
.section-main-title {
    font-size: 2.8rem !important;
    letter-spacing: -1px;
    font-weight: 700;
    line-height: 1.2;
}

.divider {
    width: 60px;
    height: 4px;
    background: var(--primary-color);
    border-radius: 2px;
    margin-top: 10px;
}

/* --- Buttons --- */
.btn-primary {
    background: linear-gradient(45deg, #d4af37, #f1c40f);
    border: none;
    transition: var(--transition-smooth);
}

.btn-primary:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 10px 20px rgba(212, 175, 55, 0.3);
}

.btn-glass {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
}

.hover-up:hover { transform: translateY(-3px); }

/* --- Hero Slider (Home) --- */
#mainHeroSlider .carousel-item {
    height: 90vh;
    transition: transform 1.2s ease-in-out, opacity 1s ease-in-out;
}

.carousel-item::after {
    content: "";
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.3);
}

/* --- Overlapping Trust Cards --- */
.trust-overlap-section {
    margin-top: -80px;
    z-index: 10;
    position: relative;
}

.trust-card {
    transition: var(--transition-smooth);
    border-top: 4px solid transparent !important;
    background: white;
}

.trust-card:hover {
    transform: translateY(-10px);
    border-top: 4px solid var(--primary-color) !important;
    box-shadow: 0 20px 40px rgba(0,0,0,0.08) !important;
}

.icon-circle {
    width: 65px; height: 65px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    background: var(--soft-primary);
    font-size: 1.6rem;
    color: var(--primary-color);
}

/* --- Program Page Styles --- */
.visa-card {
    transition: transform 0.3s ease;
    z-index: 1;
    position: relative;
    overflow: hidden;
}

.visa-card:hover { transform: translateY(-10px); }

.visa-bg-icon {
    position: absolute;
    right: -20px; bottom: -20px;
    font-size: 8rem;
    color: var(--soft-primary);
    z-index: -1;
    opacity: 0.3;
}

/* --- Partners & Testimonials --- */
.grayscale {
    filter: grayscale(100%);
    opacity: 0.6;
    transition: 0.4s;
    max-height: 50px;
    object-fit: contain;
}

.partner-logos div:hover .grayscale {
    filter: grayscale(0%);
    opacity: 1;
    transform: scale(1.1);
}

.avatar-circle {
    width: 55px; height: 55px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-weight: bold;
    background: var(--soft-primary);
    color: var(--primary-color);
}

/* --- Event Cards --- */
.event-card {
    transition: var(--transition-smooth);
    overflow: hidden;
    background: white;
}

.event-card img { transition: 0.6s ease; width: 100%; height: 220px; object-fit: cover; }
.event-card:hover { transform: translateY(-10px); box-shadow: 0 15px 35px rgba(0,0,0,0.1) !important; }
.event-card:hover img { transform: scale(1.08); }

/* --- Forms --- */
.form-control {
    padding: 0.8rem 1.2rem;
    border-radius: 10px;
    border: 1px solid #eee;
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.25rem rgba(212, 175, 55, 0.1);
}

/* ======================================================
   MOBILE APP RESPONSIVE STYLES (The "App Look")
   ====================================================== */

@media (max-width: 991px) {
    .section-main-title { font-size: 2.2rem !important; }
}

@media (max-width: 767px) {
    /* Global Spacing for Mobile */
    .py-5 { padding-top: 3.5rem !important; padding-bottom: 3.5rem !important; }
    
    /* Hero Adjustments */
    #mainHeroSlider .carousel-item { height: 80vh; }
    .display-1 { font-size: 2.5rem !important; }
    .carousel-caption p.lead { font-size: 1rem !important; }
    
    /* App Card Layout */
    .trust-overlap-section { margin-top: -40px; }
    .trust-card { margin-bottom: 10px; }
    
    .section-main-title { 
        font-size: 1.85rem !important; 
        text-align: center;
    }

    /* Testimonial Box App Look */
    .testimonial-box {
        padding: 2rem !important;
        border-radius: 25px !important;
    }

    /* Buttons for touch */
    .btn-lg {
        padding: 12px 30px !important;
        font-size: 0.95rem !important;
        width: 100%; /* Stack buttons on mobile */
        margin-bottom: 10px;
    }
    .d-flex.justify-content-center.gap-3 {
        flex-direction: column;
        align-items: center;
    }

    /* Partners for Mobile */
    .partner-logos .col-4 {
        flex: 0 0 50%;
        max-width: 50%;
        display: flex;
        justify-content: center;
    }
    
    /* Event Card App Look */
    .event-card {
        border-radius: 20px !important;
    }
}

/* Touch Device Optimization */
@media (hover: none) {
    .trust-card:hover, .event-card:hover, .visa-card:hover {
        transform: none !important;
    }
}