/* Redesign V2 CSS */
@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,wght@0,400;0,500;0,700;1,400&family=Outfit:wght@300;400;500;600;700&display=swap');

:root {
    --primary-color: #002B49;
    /* Deep Academic Navy */
    --secondary-color: #EFA908;
    /* Premium Gold */
    --accent-color: #00A8CC;
    /* Modern Teal/Cyan accent */
    --bg-light: #F4F7F9;
    --bg-white: #ffffff;
    --text-main: #333333;
    --text-muted: #666666;
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'DM Sans', sans-serif;
    --radius-md: 12px;
    --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

body {
    font-family: var(--font-body) !important;
    color: var(--text-main);
    background-color: var(--bg-light);
    line-height: 1.6;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading) !important;
    color: var(--primary-color);
    font-weight: 700;
}

/* Helper Classes */
.text-primary-custom {
    color: var(--primary-color) !important;
}

.text-secondary-custom {
    color: var(--secondary-color) !important;
}

.bg-light-custom {
    background-color: var(--bg-light) !important;
}

.section-padding {
    padding: 80px 0;
}

@media (max-width: 991px) {
    .section-padding {
        padding: 50px 0;
    }

    /* Reduce padding on mobile */
}

/* Header Tweaks (Using existing header structure but cleaning it) */
.tgmenu__nav {
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-sm);
    padding: 8px 0;
    /* Reduced from 15px */
}

.tgmenu__nav .logo img {
    max-width: 140px !important;
    /* Force smaller logo */
}

.tgmenu__main-menu ul li a {
    color: var(--primary-color) !important;
    font-weight: 600;
    font-size: 15px;
    /* Slightly smaller font */
}

.tgmenu__main-menu ul li.active a {
    color: var(--secondary-color) !important;
}

/* Hero Section */
.hero-section {
    position: relative;
    padding: 140px 0 80px;
    background: linear-gradient(135deg, #002B49 0%, #001f35 100%);
    color: white;
    overflow: hidden;
}

.hero-bg-shape {
    position: absolute;
    top: 0;
    right: 0;
    width: 50%;
    height: 100%;
    background-image: url('https://www.managementassignmenthelp.uk/assets/img/banner/banner-shape.svg');
    background-repeat: no-repeat;
    background-position: right center;
    opacity: 0.1;
}

.hero-content h1 {
    color: white !important;
    font-size: 3.5rem;
    line-height: 1.2;
    margin-bottom: 24px;
}

.hero-content p {
    color: #cbd5e1;
    font-size: 1.125rem;
    margin-bottom: 32px;
    max-width: 600px;
}

.hero-badges {
    display: flex;
    gap: 20px;
    align-items: center;
    margin-bottom: 30px;
}

.trust-badge {
    background: rgba(255, 255, 255, 0.1);
    padding: 8px 16px;
    border-radius: 50px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 500;
}

.trust-badge i {
    color: var(--secondary-color);
}

/* Form Card Redesign - Override form styles */
.hero-form-wrapper {
    background: white;
    padding: 24px;
    /* Reduced padding from 30px */
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    position: relative;
    z-index: 10;
    max-width: 380px;
    /* Constrain width */
    margin-left: auto;
    /* Right align in column */
}

/* Force local overrides for form.php included styles */
.form-box {
    box-shadow: none !important;
    padding: 0 !important;
    margin: 0 !important;
    max-width: 100% !important;
}

.form-head {
    color: var(--primary-color);
    font-size: 1.5rem;
    margin-bottom: 20px;
}

.form-control {
    border: 1px solid #e2e8f0;
    padding: 10px 14px;
    /* Slightly smaller padding */
    border-radius: 8px;
    background-color: #f8fafc;
    margin-bottom: 12px !important;
    /* Fix spacing */
}

.form-control:focus {
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 3px rgba(239, 169, 8, 0.1);
}

/* Ensure form button matches theme */
.form-box button[type="submit"] {
    background-color: var(--secondary-color) !important;
    border: none;
    color: #002B49;
    font-weight: 700;
    width: 100%;
    padding: 12px;
    border-radius: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
}

.form-box button[type="submit"]:hover {
    background-color: #fabf2c !important;
    transform: translateY(-2px);
}

/* Trust Bar */
.trust-bar {
    background: white;
    padding: 20px 0;
    border-bottom: 1px solid #e2e8f0;
}

.trust-logo {
    max-height: 40px;
    opacity: 0.7;
    filter: grayscale(100%);
    transition: all 0.3s;
}

.trust-logo:hover {
    opacity: 1;
    filter: grayscale(0%);
}

/* Service Cards */
.service-card {
    background: white;
    padding: 30px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
    border: 1px solid transparent;
    height: 100%;
    position: relative;
    overflow: hidden;
}



.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
    border-color: var(--secondary-color);
}

.service-icon {
    width: 60px;
    height: 60px;
    background: #e0f2fe;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    font-size: 24px;
    color: var(--primary-color);
}

.service-card h3 {
    font-size: 1.25rem;
    margin-bottom: 16px;
}

.service-card p {
    font-size: 0.95rem;
    color: var(--text-muted);
}

/* About Section */
.about-img-wrapper {
    position: relative;
    border-radius: var(--radius-md);
    overflow: hidden;
}

.about-img-wrapper::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: var(--primary-color);
    opacity: 0.1;
    top: 20px;
    left: -20px;
    z-index: -1;
    border-radius: var(--radius-md);
}

/* Tabs Section */
.nav-tabs {
    border-bottom: none;
    gap: 10px;
    justify-content: center;
    margin-bottom: 30px;
}

.nav-tabs .nav-link {
    border: none;
    border-radius: 50px;
    padding: 10px 24px;
    font-weight: 600;
    color: var(--text-muted);
    background: #f1f5f9;
    transition: all 0.3s;
}

.nav-tabs .nav-link.active {
    background-color: var(--secondary-color);
    color: var(--primary-color);
}

.tab-content {
    background: white;
    padding: 40px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    text-align: center;
    border: none !important;
    /* Override default border */
}

/* Section Titles */
.section-title-wrapper {
    text-align: center;
    margin-bottom: 50px;
}

.section-title-wrapper .sub-title {
    color: var(--secondary-color);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
    display: block;
    margin-bottom: 10px;
}

.section-title-wrapper h2 {
    font-size: 2.5rem;
    max-width: 800px;
    margin: 0 auto;
}

/* FAQ */
.accordion-item {
    border: none;
    margin-bottom: 12px;
    /* Reduced from 16px */
    box-shadow: var(--shadow-sm);
    border-radius: 8px !important;
    overflow: hidden;
}

.accordion-button {
    font-weight: 600;
    color: var(--primary-color);
    background-color: white;
    padding: 12px 20px;
    /* Reduced from 20px 24px */
    font-size: 0.95rem;
    /* Slightly smaller text */
}

.accordion-button:not(.collapsed) {
    color: var(--primary-color);
    background-color: #f8fafc;
    box-shadow: none;
}

.accordion-button:focus {
    box-shadow: none;
    border-color: rgba(0, 0, 0, .125);
}

.accordion-body {
    padding: 15px 20px;
    /* Reduced from 24px */
    background: white;
    line-height: 1.6;
    /* Reduced line height slightly */
    font-size: 0.95rem;
}

/* Text Content - Improve readbility */
.content-block {
    font-size: 1.05rem;
    color: #475569;
}

.content-block h2 {
    font-size: 2rem;
    margin-top: 40px;
    margin-bottom: 20px;
}

.content-block h3 {
    font-size: 1.5rem;
    margin-top: 30px;
    margin-bottom: 15px;
}

.content-block p {
    margin-bottom: 20px;
}

/* CTA Section */
.cta-section {
    background: var(--primary-color);
    color: white;
    padding: 60px 0;
    text-align: center;
    border-radius: 20px;
    margin: 40px 0;
}

.cta-section h2 {
    color: white !important;
}

/* Responsive */
@media (max-width: 991px) {
    .hero-section {
        padding: 100px 0 60px;
        /* Reduced top padding for mobile */
        text-align: center;
    }

    .hero-content h1 {
        font-size: 2.2rem;
        /* Smaller heading on mobile */
    }

    .hero-content p {
        font-size: 1rem;
    }

    .hero-badges {
        justify-content: center;
        flex-wrap: wrap;
        /* Allow badges to wrap */
    }

    .hero-form-wrapper {
        margin: 30px auto 0;
        max-width: 100%;
        padding: 20px;
    }

    .tgmenu__nav .logo img {
        max-width: 120px !important;
        /* Even smaller logo on mobile */
    }

    .tgmenu__action {
        display: none !important;
        /* Hide header buttons on mobile if they overlap or cause clutter */
    }

    /* Re-enable if you want specific mobile buttons, or rely on hamburger menu */

    .img-fluid {
        margin-bottom: 30px;
    }

    .section-title-wrapper h2 {
        font-size: 1.8rem;
        /* Smaller section titles */
    }

    .trust-bar .d-flex {
        justify-content: center !important;
        gap: 15px !important;
    }

    .nav-tabs {
        gap: 5px;
    }

    .nav-tabs .nav-link {
        padding: 8px 16px;
        font-size: 14px;
    }
}

@media (max-width: 576px) {
    .hero-section {
        padding: 90px 0 50px;
    }

    .hero-content h1 {
        font-size: 1.8rem;
    }

    .service-card {
        padding: 20px;
    }

    .accordion-button {
        padding: 10px 15px;
        font-size: 0.9rem;
    }

    .accordion-body {
        padding: 15px;
    }

    /* Ensure container doesn't overflow */
    .testimonial__item-wrap {
        padding: 0 10px;
        overflow: hidden;
    }
}