:root {
    --primary: #fff;
    --secondary: #640d14;
    --light: #ecf0f1;
    --dark: #000;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #000;
    background-color: #fff;
    padding-top: 0;
    margin-top: 0 !important;
}

.bg-primary {
    background-color: var(--secondary) !important;
    color: #fff;
}

.bg-primary a {
    color: #fff;
}

.bg-primary a:hover {
    color: rgba(255, 255, 255, 0.85);
}

/* Top Bar */
.top-bar {
    font-size: 0.85rem;
}

.top-bar .social-links a {
    color: #fff;
    margin-left: 15px;
    transition: color 0.3s;
}

.top-bar .social-links a:hover {
    color: var(--secondary);
}

/* Navigation */
.navbar {
    background-color: #fff;
    padding: 15px 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--secondary) !important;
}

.navbar-brand img {
    height: 60px;
    width: auto;
    display: block;
}

.navbar-nav .nav-link {
    font-weight: 500;
    padding: 0.5rem 1rem;
    margin: 0 0.2rem;
    transition: all 0.3s;
    color: #000 !important;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: var(--secondary) !important;
}

.navbar .navbar-toggler {
    border-color: rgba(100, 13, 20, 0.35);
}

.dropdown-menu {
    border: none;
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
    border-radius: 8px;
}

.dropdown-item:hover {
    background-color: rgba(100, 13, 20, 0.1);
    color: var(--secondary);
}

/* Preloader */
.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, rgba(100, 13, 20, 0.78) 0%, rgba(26, 37, 47, 0.78) 100%), url('../images/blog/globe.png');
    background-size: cover, contain;
    background-position: center, center;
    background-repeat: no-repeat, no-repeat;
    color: white;
    padding: 80px 0 180px;
    position: relative;
    margin-top: 0;
    padding-top: 100px;
    overflow: hidden;
}

.hero-section .container,
.hero-section .row {
    position: relative;
    z-index: 2;
}

.hero-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.3;
}

.hero-subtitle {
    font-size: 1.15rem;
    margin-bottom: 15px;
    opacity: 0.95;
}

.hero-buttons .btn {
    padding: 12px 30px;
    font-weight: 600;
}

.hero-features {
    margin-top: 30px;
    font-size: 0.95rem;
    line-height: 1.35;
}

.hero-features span {
    color: rgba(255,255,255,0.9);
}

.hero-features .d-flex {
    gap: 8px;
}

.hero-image img {
    max-width: 100%;
    height: auto;
}

.hero-shape {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    line-height: 0;
    z-index: 1;
    pointer-events: none;
}

.hero-shape svg {
    width: 100%;
    height: auto;
}

/* Section Styles */
.section-padding {
    padding: 80px 0;
}

section#about {
    background: linear-gradient(rgba(255, 255, 255, 0.75), rgba(255, 255, 255, 0.75)), url('../images/blog/globe.png');
    background-size: cover, contain;
    background-position: center, center;
    background-repeat: no-repeat, no-repeat;
}

.section-title {
    position: relative;
    margin-bottom: 40px;
}

.section-title .subtitle {
    color: var(--secondary);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
    display: block;
    margin-bottom: 10px;
}

.section-title h2 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--dark);
}

.title-divider {
    width: 60px;
    height: 4px;
    background: var(--secondary);
    margin-top: 15px;
}

.title-divider.mx-auto {
    margin-left: auto;
    margin-right: auto;
}

/* About Image */
.about-image {
    position: relative;
    background: url('../images/blog/globe.png') center/cover no-repeat;
    border-radius: 10px;
    overflow: hidden;
    min-height: 400px;
}

.about-image img {
    border-radius: 10px;
    width: 100%;
    height: 400px;
    object-fit: cover;
    object-position: center;
    display: none;
}

/* Defensive: ensure globe background works on cPanel */
.about-image,
div[style*="blog/globe.png"] {
    background-position: center;
    background-repeat: no-repeat;
}

.experience-badge {
    position: absolute;
    bottom: 20px;
    right: 20px;
    background: var(--secondary);
    color: white;
    padding: 20px 25px;
    border-radius: 10px;
    text-align: center;
}

.experience-badge h3 {
    font-size: 2rem;
    margin-bottom: 5px;
}

.experience-badge p {
    margin: 0;
    font-size: 0.9rem;
}

/* Feature Box */
.feature-box {
    padding: 25px;
    background: #f8f9fa;
    border-radius: 10px;
    height: 100%;
    transition: all 0.3s;
}

.feature-box:hover {
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.feature-icon {
    width: 60px;
    height: 60px;
    background: var(--secondary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.feature-box h4 {
    font-size: 1.1rem;
    margin-bottom: 10px;
    color: var(--dark);
}

/* Service Cards */
.service-card {
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    height: 100%;
    transition: all 0.3s;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
}

.service-card .service-icon {
    width: 70px;
    height: 70px;
    background: rgba(100, 13, 20, 0.1);
    color: var(--secondary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    margin-bottom: 20px;
}

.service-card h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: var(--dark);
}

.service-card .service-features {
    list-style: none;
    padding: 0;
    margin: 20px 0;
}

.service-card .service-features li {
    padding: 5px 0;
    font-size: 0.95rem;
}

.service-card .service-features i {
    color: var(--secondary);
    margin-right: 10px;
}

/* Value Cards */
.value-card {
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    transition: all 0.3s;
    height: 100%;
}

.value-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.12);
}

.value-card .value-icon {
    width: 70px;
    height: 70px;
    background: rgba(100, 13, 20, 0.1);
    color: var(--secondary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    margin: 0 auto 20px;
}

.value-card h3 {
    font-size: 1.2rem;
    color: var(--dark);
    margin-bottom: 10px;
}

/* Country Cards */
.country-card {
    display: block;
    background: white;
    padding: 25px 15px;
    border-radius: 10px;
    text-align: center;
    text-decoration: none;
    box-shadow: 0 3px 15px rgba(0,0,0,0.08);
    transition: all 0.3s;
    height: 100%;
}

.country-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.12);
    text-decoration: none;
}

.country-card .country-flag {
    font-size: 3rem;
    margin-bottom: 15px;
    display: block;
}

.country-card h4 {
    font-size: 1rem;
    color: var(--dark);
    margin-bottom: 5px;
}

.country-card p {
    font-size: 0.85rem;
    color: #666;
    margin: 0;
}

.country-card.view-more {
    background: var(--secondary);
    color: white;
}

.country-card.view-more h4,
.country-card.view-more p {
    color: white;
}

/* Testimonial Cards */
.testimonial-card {
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    height: 100%;
}

.testimonial-card-modern {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 6px 22px rgba(0,0,0,0.08);
    padding: 28px 24px 24px;
    height: 100%;
    text-align: center;
    position: relative;
}

.testimonial-card-modern .testimonial-avatar {
    width: 110px;
    height: 110px;
    min-width: 110px;
    min-height: 110px;
    max-width: 110px;
    max-height: 110px;
    border-radius: 50%;
    margin: 0 auto 18px;
    background: #f2f4f7;
    position: relative;
    display: grid;
    place-items: center;
    border: 4px solid rgba(44, 62, 80, 0.9);
    box-shadow: 0 10px 22px rgba(0,0,0,0.10);
    overflow: visible;
}

.testimonial-card-modern .testimonial-avatar-inner {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    overflow: hidden;
    position: relative;
    display: grid;
    place-items: center;
    background: #f2f4f7;
}

.testimonial-card-modern .testimonial-initials {
    font-weight: 700;
    color: rgba(44, 62, 80, 0.75);
    font-size: 2rem;
    line-height: 1;
    position: absolute;
    z-index: 0;
}

.testimonial-card-modern .testimonial-avatar img {
    position: relative;
    z-index: 1;
}

.testimonial-card-modern .testimonial-avatar.no-image img {
    display: none;
}

.testimonial-card-modern .testimonial-avatar img {
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    object-fit: cover;
    object-position: center 10%;
    display: block;
}

.testimonial-card-modern .testimonial-flag {
    position: absolute;
    right: -8px;
    bottom: 8px;
    display: none;
    width: auto;
    height: auto;
    border-radius: 0;
    background: transparent;
    font-size: 18px;
    box-shadow: none;
    border: 0;
    outline: 0;
    z-index: 3;
    line-height: 1;
    font-family: "Segoe UI Emoji", "Apple Color Emoji", "Noto Color Emoji", sans-serif;
}

.testimonial-card-modern .testimonial-text {
    font-style: normal;
    color: #566;
    margin-bottom: 18px;
    line-height: 1.75;
    font-size: 0.95rem;
}

.testimonial-card-modern .testimonial-meta {
    display: grid;
    gap: 4px;
}

.testimonial-card-modern .testimonial-meta h5 {
    margin: 0;
    color: var(--dark);
    font-weight: 600;
}

.testimonial-card-modern .testimonial-meta .testimonial-subtitle {
    color: #8a8f98;
    font-size: 0.9rem;
}

.testimonial-card-modern .testimonial-rating {
    justify-content: center;
}

.testimonial-card-modern .testimonial-rating i {
    margin-right: 2px;
}

img[src*="assets/images/testimonials/"] {
    width: 110px;
    height: 110px;
    min-width: 110px;
    min-height: 110px;
    max-width: 110px;
    max-height: 110px;
    border-radius: 50%;
    object-fit: cover;
    object-position: center 10%;
    display: block;
}

.testimonial-rating {
    color: #ffc107;
    margin-bottom: 15px;
}

.testimonial-text {
    font-style: italic;
    color: #555;
    margin-bottom: 20px;
    line-height: 1.7;
}

.testimonial-author .author-info h5 {
    margin-bottom: 5px;
    color: var(--primary);
}

.testimonial-author .author-info span {
    color: #888;
    font-size: 0.9rem;
}

/* Process Cards */
.process-card {
    background: white;
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    height: 100%;
    position: relative;
}

.process-number {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--secondary);
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}

.process-icon {
    width: 70px;
    height: 70px;
    background: rgba(100, 13, 20, 0.1);
    color: var(--secondary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    margin: 20px auto 20px;
}

.process-card h3 {
    font-size: 1.1rem;
    color: var(--dark);
    margin-bottom: 10px;
}

/* Page Header */
.page-header {
    background: linear-gradient(135deg, var(--secondary) 0%, #1a252f 100%);
    color: white;
    padding: 80px 0;
    text-align: center;
    margin-top: -50px;
}

.page-header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 15px;
}

.page-header .breadcrumb {
    background: transparent;
    margin: 0;
    padding: 0;
    justify-content: center;
}

.page-header .breadcrumb-item a {
    color: rgba(255,255,255,0.8);
    text-decoration: none;
}

.page-header .breadcrumb-item a:hover {
    color: white;
}

.page-header .breadcrumb-item.active {
    color: var(--secondary);
}

.page-header .breadcrumb-item + .breadcrumb-item::before {
    color: rgba(255,255,255,0.5);
}

/* CTA Section */
.cta-section {
    background: var(--secondary);
    color: #fff;
}

.cta-section h2 {
    font-size: 2rem;
    font-weight: 700;
}

/* Footer */
.footer {
    background: #fff;
    color: var(--dark);
    padding: 60px 0 0;
}

.footer-title {
    font-size: 1.2rem;
    margin-bottom: 25px;
    font-weight: 600;
}

.footer-widget p {
    color: rgba(0, 0, 0, 0.75);
    line-height: 1.8;
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: rgba(0, 0, 0, 0.75);
    text-decoration: none;
    transition: all 0.3s;
}

.footer-links a:hover {
    color: var(--secondary);
    padding-left: 5px;
}

.footer-contact {
    list-style: none;
    padding: 0;
}

.footer-contact li {
    display: flex;
    margin-bottom: 20px;
}

.footer-contact .icon {
    width: 40px;
    height: 40px;
    background: transparent;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    flex-shrink: 0;
}

.footer-contact .icon i {
    color: var(--secondary);
}

.footer-contact .info h4 {
    font-size: 1rem;
    margin-bottom: 3px;
}

.footer-contact .info p {
    margin: 0;
    font-size: 0.9rem;
}

.footer-social a {
    display: inline-flex;
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.1);
    color: white;
    border-radius: 50%;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    text-decoration: none;
}

.footer-social a:hover {
    background: var(--secondary);
}

.footer-bottom {
    margin-top: 40px;
    padding: 20px 0;
    border-top: 1px solid rgba(0, 0, 0, 0.12);
}

.footer-bottom-links a {
    color: rgba(0, 0, 0, 0.75);
    text-decoration: none;
    margin-left: 20px;
    transition: color 0.3s;
}

.footer-bottom-links a:hover {
    color: var(--secondary);
}

/* Back to Top */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--secondary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
    z-index: 999;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: var(--dark);
    color: white;
}

/* WhatsApp Float */
.whatsapp-float {
    position: fixed;
    bottom: 100px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: #25d366;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    text-decoration: none;
    box-shadow: 0 5px 20px rgba(37, 211, 102, 0.4);
    z-index: 998;
    transition: all 0.3s;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    color: white;
}

/* Buttons */
.btn-primary {
    background-color: var(--secondary);
    border-color: var(--secondary);
    padding: 10px 25px;
    font-weight: 600;
    transition: all 0.3s;
}

.btn-primary:hover {
    background-color: #4a0a0f;
    border-color: #4a0a0f;
    transform: translateY(-2px);
}

.btn-outline-primary {
    color: var(--secondary);
    border-color: var(--secondary);
    padding: 10px 25px;
    font-weight: 600;
}

.btn-outline-primary:hover {
    background-color: var(--secondary);
    border-color: var(--secondary);
}

.btn-light {
    padding: 10px 25px;
    font-weight: 600;
}

/* Accordion */
.accordion-button:not(.collapsed) {
    background-color: rgba(100, 13, 20, 0.1);
    color: var(--dark);
}

.accordion-button:focus {
    box-shadow: none;
    border-color: rgba(100, 13, 20, 0.25);
}

.accordion-item {
    border: 1px solid #eee;
    margin-bottom: 10px;
    border-radius: 8px !important;
}

/* Feature List */
.feature-list .feature-item {
    display: flex;
    margin-bottom: 25px;
}

.feature-list .feature-icon {
    margin-right: 20px;
    margin-bottom: 0;
}

.feature-list .feature-content h4 {
    font-size: 1.1rem;
    margin-bottom: 5px;
}

/* Counter Section */
.counter-section .counter-item .counter-icon {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.counter-section .counter-item h3 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 5px;
}

.stat-item h2.stat-number {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 10px;
}

/* Form Styles */
.form-floating > .form-control,
.form-floating > .form-select {
    height: 58px;
}

.form-floating > label {
    padding: 1rem 0.75rem;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--secondary);
    box-shadow: 0 0 0 0.25rem rgba(100, 13, 20, 0.15);
}

/* Placeholder Images */
img[src*="placeholder"],
img:not([src]),
img[src=""] {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

/* Image fallback backgrounds */
.about-image img,
.hero-image img,
.why-choose-image img,
img[alt*="About"],
img[alt*="Study"],
img[alt*="Immigration"],
img[alt*="Universities"] {
    background: linear-gradient(135deg, var(--primary) 0%, #667eea 100%);
    min-height: 300px;
}

/* Responsive */
@media (max-width: 991.98px) {
    body {
        padding-top: 70px;
    }
    
    .hero-section {
        padding: 60px 0 140px;
        margin-top: 0;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .page-header {
        margin-top: 0;
        padding: 60px 0;
    }
    
    .page-header h1 {
        font-size: 2rem;
    }
    
    .section-padding {
        padding: 60px 0;
    }
}

@media (max-width: 767.98px) {
    .hero-title {
        font-size: 1.75rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .section-title h2 {
        font-size: 1.75rem;
    }
    
    .top-bar {
        display: none !important;
    }
    
    body {
        padding-top: 60px;
    }

    .hero-features {
        font-size: 0.9rem;
        margin-top: 20px;
    }

    .testimonial-card-modern {
        padding: 24px 18px 20px;
    }

    .testimonial-card-modern .testimonial-avatar {
        width: 96px;
        height: 96px;
    }
}
