/**
 * TutorTech - Main Stylesheet
 * Sophisticated Design for Oil, Gas & Marine Transport Company
 */

/* ===== CSS VARIABLES (Color Palette) ===== */
:root {
    --navy-blue: #0A2463;
    --steel-grey: #3E4756;
    --ocean-teal: #247BA0;
    --safety-orange: #F25F3A;
    --white: #FFFFFF;
    --soft-grey: #F8F9FA;
    --dark-charcoal: #2D3748;
    --light-grey: #E5E7EB;
    --gold-accent: #D4AF37;
    --success-green: #10B981;
    --light-blue: #E8F4F8;
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-heading: 'Montserrat', sans-serif;
    --section-padding: 80px 0;
    --container-max-width: 1200px;
    --transition-smooth: all 0.3s ease;
}

/* ===== RESET & BASE ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    font-size: 16px;
    line-height: 1.6;
    color: var(--dark-charcoal);
    background-color: var(--white);
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-smooth);
}

ul {
    list-style: none;
}

/* ===== TYPOGRAPHY ===== */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: var(--navy-blue);
}

h1 { font-size: 3rem; }
h2 { font-size: 2.5rem; }
h3 { font-size: 2rem; }
h4 { font-size: 1.5rem; }
h5 { font-size: 1.25rem; }
h6 { font-size: 1rem; }

p {
    margin-bottom: 1rem;
    line-height: 1.8;
}

.text-center { text-align: center; }
.text-light { color: var(--light-grey); }

/* ===== UTILITY CLASSES ===== */
.container {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: var(--section-padding);
}

.section-alt {
    background-color: var(--soft-grey);
    padding: 80px 0;
}

.section-dark {
    background-color: var(--navy-blue);
    color: var(--white);
    padding: 50px;
}

.section-dark h2,
.section-dark h3,
.section-dark h4 {
    color: var(--white);
}

.flex {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.grid {
    display: grid;
    gap: 2rem;
}

.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

/* ===== BUTTONS ===== */
.btn {
    display: inline-block;
    padding: 14px 32px;
    font-size: 1rem;
    font-weight: 600;
    text-align: center;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    transition: var(--transition-smooth);
    font-family: var(--font-primary);
}

.btn-primary {
    background: var(--safety-orange);
    color: var(--white);
}

.btn-primary:hover {
    background: #E04D2F;
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(242, 95, 58, 0.3);
}

.btn-secondary {
    background: transparent;
    color: var(--safety-orange);
    border: 2px solid var(--safety-orange);
}

.btn-secondary:hover {
    background: var(--safety-orange);
    color: var(--white);
}

.btn-white {
    background: var(--white);
    color: var(--navy-blue);
}

.btn-white:hover {
    background: var(--soft-grey);
}

/* ===== HEADER & NAVIGATION ===== */
.header {
    background: var(--white);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: var(--transition-smooth);
}

.header.scrolled {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 20px;
    max-width: var(--container-max-width);
    margin: 0 auto;
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--navy-blue);
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo span {
    color: var(--safety-orange);
}

.nav-menu {
    display: flex;
    gap: 2.5rem;
    align-items: center;
}

.nav-link {
    font-weight: 500;
    color: var(--steel-grey);
    position: relative;
    padding: 8px 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--safety-orange);
    transition: width 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
    color: var(--navy-blue);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
}

.mobile-toggle span {
    width: 25px;
    height: 3px;
    background: var(--navy-blue);
    transition: var(--transition-smooth);
}

/* ===== HERO SECTION ===== */
.hero {
    background: linear-gradient(135deg, var(--navy-blue) 0%, var(--ocean-teal) 100%);
    color: var(--white);
    /* padding: 120px 0 100px;*/
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    opacity: 0.1;
}

/*.hero-content {
    position: relative;
    z-index: 1;
    max-width: 700px;
}
*/
.hero h1 {
    color: var(--white);
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    animation: fadeInUp 0.8s ease;
}

.hero p {
    font-size: 1.2rem;
    line-height: 1.8;
    margin-bottom: 2rem;
    opacity: 0.95;
    animation: fadeInUp 0.8s ease 0.2s both;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    animation: fadeInUp 0.8s ease 0.4s both;
}

/* ===== SECTION HEADERS ===== */
.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 3rem;
}

.section-header .section-tag {
    display: inline-block;
    padding: 8px 20px;
    background: var(--light-blue);
    color: var(--ocean-teal);
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 50px;
    margin-bottom: 1rem;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.section-header p {
    font-size: 1.1rem;
    color: var(--steel-grey);
}

/* ===== CARDS ===== */
.card {
    background: var(--white);
    border-radius: 12px;
    padding: 2.5rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: var(--transition-smooth);
    height: 100%;
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
}

.card-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--ocean-teal), var(--navy-blue));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    font-size: 2rem;
}

.card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--navy-blue);
}

.card p {
    color: var(--steel-grey);
    line-height: 1.7;
}

/* ===== STATS SECTION ===== */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

.stat-item {
    text-align: center;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    backdrop-filter: blur(10px);
}

.stat-number {
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--gold-accent);
    display: block;
    margin-bottom: 0.5rem;
    font-family: var(--font-heading);
}

.stat-label {
    font-size: 1.1rem;
    color: var(--white);
    opacity: 0.9;
}

/* ===== FORMS ===== */
.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--navy-blue);
}

.form-control {
    width: 100%;
    padding: 14px 18px;
    font-size: 1rem;
    font-family: var(--font-primary);
    border: 2px solid var(--light-grey);
    border-radius: 8px;
    transition: var(--transition-smooth);
    background: var(--white);
}

.form-control:focus {
    outline: none;
    border-color: var(--ocean-teal);
    box-shadow: 0 0 0 3px rgba(36, 123, 160, 0.1);
}

textarea.form-control {
    resize: vertical;
    min-height: 150px;
}

/* ===== FOOTER ===== */
.footer {
    background: var(--navy-blue);
    color: var(--white);
    padding-top: 60px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-column h4 {
    color: var(--white);
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
}

.footer-column p,
.footer-column a {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.8;
    display: block;
    margin-bottom: 0.5rem;
}

.footer-column a:hover {
    color: var(--safety-orange);
    padding-left: 5px;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1.5rem 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-link {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transition: var(--transition-smooth);
}

.social-link:hover {
    background: var(--safety-orange);
    transform: translateY(-3px);
}

/* ===== ANIMATIONS ===== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.fade-in-up {
    animation: fadeInUp 0.8s ease both;
}

.fade-in {
    animation: fadeIn 0.8s ease both;
}

.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }
.delay-4 { animation-delay: 0.4s; }

/* ===== LOADING SPINNER ===== */
.spinner {
    border: 3px solid var(--light-grey);
    border-top: 3px solid var(--safety-orange);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 20px auto;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* ===== TOAST NOTIFICATIONS ===== */
.toast {
    position: fixed;
    bottom: 30px;
    right: 30px;
    padding: 18px 24px;
    background: var(--white);
    border-radius: 8px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    gap: 12px;
    z-index: 9999;
    animation: slideInRight 0.4s ease;
}

.toast.success { border-left: 4px solid var(--success-green); }
.toast.error { border-left: 4px solid var(--safety-orange); }

@keyframes slideInRight {
    from {
        transform: translateX(400px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* ===== BOOTSTRAP CAROUSEL ENHANCEMENTS ===== */
.hero-carousel {
    position: relative;
    margin-top: -70px;
}

.carousel {
    height: 100px;
}

.carousel-item {
    height: 600px;
}

.carousel-item img {
    object-fit: cover;
    height: 100%;
    width: 100%;
}

.carousel-caption-custom {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    width: 90%;
    max-width: 900px;
    z-index: 10;
}

.carousel-caption-custom h1 {
    color: var(--white);
    text-shadow: 2px 2px 8px rgba(0,0,0,0.3);
    margin-bottom: 1.5rem;
}

.carousel-caption-custom p {
    color: var(--white);
    font-size: 1.3rem;
    text-shadow: 1px 1px 4px rgba(0,0,0,0.3);
}

.carousel-caption-custom .hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 2rem;
}

.carousel-control-prev,
.carousel-control-next {
    width: 60px;
    height: 60px;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(10, 36, 99, 0.7);
    border-radius: 50%;
    opacity: 0.7;
    transition: var(--transition-smooth);
}

.carousel-control-prev:hover,
.carousel-control-next:hover {
    opacity: 1;
    background: rgba(10, 36, 99, 0.9);
}

.carousel-control-prev {
    left: 30px;
}

.carousel-control-next {
    right: 30px;
}

.carousel-indicators {
    bottom: 30px;
}

.carousel-indicators [data-bs-target] {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin: 0 5px;
    background-color: rgba(255,255,255,0.5);
    border: 2px solid var(--white);
    transition: var(--transition-smooth);
}

.carousel-indicators .active {
    background-color: var(--safety-orange);
    width: 40px;
    border-radius: 6px;
}

/* ===== BREADCRUMB ===== */
.breadcrumb-section {
    background: var(--soft-grey);
    padding: 1rem 0;
    border-bottom: 1px solid var(--light-grey);
}

.breadcrumb {
    margin-bottom: 0;
    background: transparent;
    padding: 0;
}

.breadcrumb-item {
    font-size: 0.9rem;
}

.breadcrumb-item + .breadcrumb-item::before {
    content: "›";
    color: var(--steel-grey);
    font-size: 1.2rem;
}

.breadcrumb-item a {
    color: var(--ocean-teal);
    text-decoration: none;
}

.breadcrumb-item a:hover {
    color: var(--navy-blue);
    text-decoration: underline;
}

.breadcrumb-item.active {
    color: var(--steel-grey);
}

/* Carousel Breadcrumb (inside carousel) */
.carousel-caption-custom .breadcrumb {
    justify-content: center;
    margin-bottom: 2rem;
}

.carousel-caption-custom .breadcrumb-item {
    color: rgba(255,255,255,0.8);
}

.carousel-caption-custom .breadcrumb-item a {
    color: var(--white);
}

.carousel-caption-custom .breadcrumb-item + .breadcrumb-item::before {
    color: rgba(255,255,255,0.6);
}

/* ===== CAROUSEL FADE ANIMATION ===== */
.carousel-fade .carousel-item {
    opacity: 0;
    transition-duration: 1s;
    transition-property: opacity;
}

.carousel-fade .carousel-item.active {
    opacity: 1;
}

.carousel-fade .carousel-item-next.carousel-item-start,
.carousel-fade .carousel-item-prev.carousel-item-end {
    opacity: 1;
}

.carousel-fade .active.carousel-item-start,
.carousel-fade .active.carousel-item-end {
    opacity: 0;
}

/* ===== BUTTON ENHANCEMENTS ===== */
.btn-lg {
    padding: 16px 40px;
    font-size: 1.1rem;
}

/* ===== RESPONSIVE CAROUSEL ===== */
@media (max-width: 768px) {
    .carousel {
        height: 500px;
    }
    
    .carousel-item {
        height: 500px;
    }
    
    .carousel-caption-custom h1 {
        font-size: 2rem;
    }
    
    .carousel-caption-custom p {
        font-size: 1rem;
    }
    
    .carousel-caption-custom .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .carousel-caption-custom .btn {
        width: 100%;
        max-width: 300px;
    }
    
    .carousel-control-prev,
    .carousel-control-next {
        width: 50px;
        height: 50px;
    }
    
    .carousel-control-prev {
        left: 15px;
    }
    
    .carousel-control-next {
        right: 15px;
    }
    
    .hero-carousel {
        margin-top: 0;
    }
}

@media (max-width: 480px) {
    .carousel {
        height: 400px;
    }
    
    .carousel-item {
        height: 400px;
    }
    
    .carousel-caption-custom h1 {
        font-size: 1.5rem;
    }
    
    .carousel-caption-custom .breadcrumb {
        font-size: 0.8rem;
    }
}

/* ===== LOADING ANIMATION FOR CAROUSEL ===== */
@keyframes carouselLoad {
    from {
        opacity: 0;
        transform: scale(1.1);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.carousel-item.active img {
    animation: carouselLoad 1s ease-in-out;
}



/* ===== EMERGENCY CSS CONFLICT FIXES ===== */
/* Fix number display conflicts */
.hero-stats .stat .number,
.stats-section .stat-number,
.stat-number {
    font-family: var(--font-primary) !important;
    font-size: 2.5rem !important;
    font-weight: 700 !important;
    color: #FFD700 !important;
    background: none !important;
}

/* Remove ALL pseudo-elements causing garbled text */
.hero-stats .stat .number::before,
.hero-stats .stat .number::after,
.stats-section .stat-number::before,
.stats-section .stat-number::after,
.stat-number::before,
.stat-number::after {
    content: none !important;
    display: none !important;
}

/* Force remove background images and content */
.hero-stats .stat,
.stats-section .stat-item,
.stat-item {
    background-image: none !important;
}

/* Fix Font Awesome icons */
.service-icon i,
.value-icon i,
.floating-card i,
.hero-actions i,
.quote-features i,
.cta-actions i,
.card-icon i {
    font-family: 'Font Awesome 5 Free' !important;
    font-weight: 900 !important;
}

/* Specific icon content fixes */
.fa-ship:before { content: "\f21a" !important; }
.fa-oil-well:before { content: "\f705" !important; }
.fa-tools:before { content: "\f7d9" !important; }
.fa-industry:before { content: "\f275" !important; }
.fa-check:before { content: "\f00c" !important; }
.fa-arrow-right:before { content: "\f061" !important; }
.fa-play-circle:before { content: "\f144" !important; }
.fa-phone:before { content: "\f095" !important; }
.fa-envelope:before { content: "\f0e0" !important; }
.fa-clock:before { content: "\f017" !important; }
.fa-check-circle:before { content: "\f058" !important; }
.fa-headset:before { content: "\f590" !important; }
.fa-history:before { content: "\f1da" !important; }
.fa-project-diagram:before { content: "\f542" !important; }
.fa-users:before { content: "\f0c0" !important; }
.fa-star:before { content: "\f005" !important; }
.fa-handshake:before { content: "\f2b5" !important; }
.fa-shield-alt:before { content: "\f3ed" !important; }

/* Force correct number display */
.hero-stats .stat .number[data-count]:empty {
    font-family: inherit !important;
}

.hero-stats .stat .number[data-count="15"] {
    content: "15" !important;
}

.hero-stats .stat .number[data-count="250"] {
    content: "250" !important;
}

.hero-stats .stat .number[data-count="98"] {
    content: "98" !important;
}

.hero {
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: left; /* Change to center if required */
    min-height: 40vh;
}

/*.hero-content {
    max-width: 650px;
}
*/

/* Optional: Center on small screens */
@media (max-width: 992px) {
    .hero {
        text-align: center;
        padding: 100px 20px;
    }

    .hero-buttons {
        justify-content: center;
    }
}
/**
 * Top Header Bar Styles
 */

/* ===== TOP HEADER BAR ===== */
.top-header {
    background: linear-gradient(135deg, #0A2463 0%, #1a3a7a 100%);
    color: var(--white);
    padding: 10px 0;
    font-size: 0.85rem;
    border-bottom: 2px solid var(--ocean-teal);
}

.top-header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.top-header-left,
.top-header-right {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.top-header-item {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    transition: var(--transition-smooth);
    white-space: nowrap;
}

.top-header-item i {
    color: var(--gold-accent);
    font-size: 0.9rem;
}

.top-header-item:hover {
    color: var(--white);
    transform: translateY(-1px);
}

a.top-header-item:hover {
    color: var(--gold-accent);
}

/* ===== MAIN NAVIGATION ADJUSTMENTS ===== */
.navbar {
    box-shadow: 0 48px 48px -32px rgba(23, 16, 159, .2), 0 96px 96px -64px rgba(3, 2, 20, .6);
    padding: 1rem 0;
    transition: var(--transition-smooth);
}

.navbar-brand {
    display: flex;
    align-items: center;
    padding: 0;
}

.navbar-brand img {
    height: 60px;
    width: auto;
    transition: var(--transition-smooth);
}

.logo-scroll {
    display: none;
}

/* Scrolled State */
.header.scrolled .navbar {
    padding: 0.5rem 0;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.header.scrolled .navbar-brand img {
    height: 40px;
}

/* Navigation Links */
.navbar-nav {
    align-items: center;
    gap: 0.5rem;
}

.nav-link {
    color: var(--navy-blue) !important;
    font-weight: 500;
    font-size: 0.95rem;
    padding: 0.5rem 1rem !important;
    position: relative;
    transition: var(--transition-smooth);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: var(--ocean-teal);
    transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 80%;
}

.nav-link:hover {
    color: var(--ocean-teal) !important;
}

.nav-link.active {
    color: var(--ocean-teal) !important;
    font-weight: 600;
}

/* Staff Login Button */
.nav-link-btn {
    background: var(--ocean-teal);
    color: var(--white) !important;
    border-radius: 6px;
    padding: 0.6rem 1.5rem !important;
    margin-left: 1rem;
    font-weight: 600;
}

.nav-link-btn::after {
    display: none;
}

.nav-link-btn:hover {
    background: var(--navy-blue);
    color: var(--white) !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(36, 123, 160, 0.3);
}

/* Dropdown Menu */
.dropdown-menu {
    border: none;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    border-radius: 8px;
    padding: 0.5rem 0;
    margin-top: 0.5rem;
}

.dropdown-item {
    padding: 0.7rem 1.5rem;
    color: var(--navy-blue);
    font-size: 0.9rem;
    transition: var(--transition-smooth);
}

.dropdown-item:hover {
    background: var(--light-blue);
    color: var(--ocean-teal);
    padding-left: 2rem;
}

.dropdown-divider {
    margin: 0.5rem 0;
    opacity: 0.2;
}

/* Mobile Navbar Toggle */
.navbar-toggler {
    border: 2px solid var(--ocean-teal);
    padding: 0.5rem 0.75rem;
}

.navbar-toggler:focus {
    box-shadow: 0 0 0 0.2rem rgba(36, 123, 160, 0.25);
}

.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(36, 123, 160, 1)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* ===== RESPONSIVE ===== */
@media (max-width: 991px) {
    .top-header {
        font-size: 0.75rem;
        padding: 8px 0;
    }
    
    .top-header-content {
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
    }
    
    .top-header-left,
    .top-header-right {
        justify-content: center;
        gap: 1rem;
    }
    
    .navbar-collapse {
        background: var(--white);
        padding: 1rem;
        margin-top: 1rem;
        border-radius: 8px;
        box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    }
    
    .navbar-nav {
        gap: 0;
    }
    
    .nav-link {
        padding: 0.75rem 1rem !important;
        border-bottom: 1px solid var(--light-grey);
    }
    
    .nav-link::after {
        display: none;
    }
    
    .nav-link-btn {
        margin-left: 0;
        margin-top: 0.5rem;
        text-align: center;
    }
    
    .dropdown-menu {
        border: none;
        box-shadow: none;
        padding-left: 1rem;
    }
}

@media (max-width: 768px) {
    .top-header-item {
        font-size: 0.7rem;
        gap: 0.3rem;
    }
    
    .top-header-left,
    .top-header-right {
        gap: 0.5rem;
        flex-wrap: wrap;
    }
    
    .navbar-brand img {
        height: 40px;
    }
}

@media (max-width: 480px) {
    .top-header {
        display: none; /* Hide on very small screens */
    }
    
    .navbar-brand img {
        height: 35px;
    }
    
    .nav-link {
        font-size: 0.9rem;
    }
}

/* ===== STICKY HEADER ===== */
.header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: var(--white);
    transition: var(--transition-smooth);
}

.header.scrolled {
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.header.scrolled .top-header {
    display: none; /* Hide top bar on scroll for cleaner look */
}

/* ===== ACCESSIBILITY ===== */
.nav-link:focus,
.navbar-toggler:focus,
.dropdown-item:focus {
    outline: 2px solid var(--ocean-teal);
    outline-offset: 2px;
}

/* ===== PRINT STYLES ===== */
@media print {
    .top-header,
    .navbar {
        display: none;
    }
}

/**
 * TutorTech Countdown Banner - Isolated Styling
 * Namespace: tt-countdown-
 * Safety Goal Tracker for NLNG
 */

/* ===== BANNER BASE ===== */
.tt-countdown-banner {
    position: relative;
    background: linear-gradient(135deg, #0B4F9F 0%, #1565C0 100%);
    padding: 40px 40px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    animation: tt-slideDown 0.5s ease;
    margin: 20px auto;
    width: 40%;
    overflow: hidden;

   /* --- FIX START --- */
    width: 50%;        /* Sets the width to half the screen */
    margin: 20px auto; /* "auto" on left/right centers it. 20px gives it breathing room top/bottom */
    border-radius: 8px; /* Optional: Adds rounded corners since it's now a "floating" box */
    /* --- FIX END --- */
}

/* RECOMMENDATION: Mobile Responsiveness
   50% is too small on phones. Add this to make it wide again on mobile. */
@media (max-width: 768px) {
    .tt-countdown-banner {
        width: 90%; /* Wider on mobile so text fits */
        padding: 20px;
    }
}

/* Background pattern effect */
.tt-countdown-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: repeating-linear-gradient(
        45deg,
        transparent,
        transparent 10px,
        rgba(255, 255, 255, 0.03) 10px,
        rgba(255, 255, 255, 0.03) 20px
    );
    pointer-events: none;
}

/* ===== CLOSE BUTTON ===== */
.tt-countdown-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    color: #fff;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
}

.tt-countdown-close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(90deg);
}

.tt-countdown-close:active {
    transform: rotate(90deg) scale(0.9);
}

/* ===== CONTENT CONTAINER ===== */
.tt-countdown-content {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

/* ===== HEADER ===== */
.tt-countdown-header {
    text-align: center;
    margin-bottom: 30px;
}

.tt-countdown-title {
    color: #fff;
    font-size: 1.8rem;
    font-weight: 700;
    margin: 0 0 10px 0;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    letter-spacing: 0.5px;
}

.tt-countdown-subtitle {
    color: rgba(255, 255, 255, 0.95);
    font-size: 1rem;
    font-weight: 600;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ===== TIMER CONTAINER ===== */
.tt-countdown-timer {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

/* ===== COUNTDOWN BOX ===== */
.tt-countdown-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

/* ===== COUNTDOWN NUMBER CONTAINER ===== */
.tt-countdown-number {
    display: flex;
    gap: 8px;
}

/* ===== DIGIT STYLING ===== */
.tt-digit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 65px;
    height: 75px;
    background: #2C2C2C;
    color: #fff;
    font-size: 2.5rem;
    font-weight: 700;
    border-radius: 8px;
    box-shadow: 
        0 4px 8px rgba(0, 0, 0, 0.3),
        inset 0 -2px 4px rgba(0, 0, 0, 0.3);
    font-family: 'Roboto Mono', 'Courier New', monospace;
    position: relative;
    transition: all 0.3s ease;
}

/* Flip animation for digits */
.tt-digit.tt-flip {
    animation: tt-digitFlip 0.6s ease;
}

@keyframes tt-digitFlip {
    0% {
        transform: rotateX(0deg);
    }
    50% {
        transform: rotateX(-90deg);
    }
    100% {
        transform: rotateX(0deg);
    }
}

/* Glowing effect on hover */
.tt-countdown-box:hover .tt-digit {
    box-shadow: 
        0 4px 12px rgba(0, 0, 0, 0.4),
        inset 0 -2px 4px rgba(0, 0, 0, 0.3),
        0 0 20px rgba(255, 255, 255, 0.2);
}

/* ===== LABEL STYLING ===== */
.tt-countdown-label {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.95rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ===== ANIMATIONS ===== */
@keyframes tt-slideDown {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Fade out animation for banner close */
@keyframes tt-fadeOut {
    from {
        opacity: 1;
        transform: translateY(0);
    }
    to {
        opacity: 0;
        transform: translateY(-50px);
    }
}

.tt-countdown-banner.tt-closing {
    animation: tt-fadeOut 0.5s ease forwards;
}

/* ===== RESPONSIVE DESIGN ===== */

/* Tablets */
@media (max-width: 768px) {
    .tt-countdown-banner {
        padding: 25px 15px;
    }
    
    .tt-countdown-title {
        font-size: 1.4rem;
    }
    
    .tt-countdown-subtitle {
        font-size: 0.85rem;
    }
    
    .tt-countdown-timer {
        gap: 15px;
    }
    
    .tt-digit {
        width: 55px;
        height: 65px;
        font-size: 2rem;
    }
    
    .tt-countdown-label {
        font-size: 0.85rem;
    }
    
    .tt-countdown-close {
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }
}

/* Mobile */
@media (max-width: 576px) {
    .tt-countdown-banner {
        padding: 20px 10px;
    }
    
    .tt-countdown-header {
        margin-bottom: 20px;
    }
    
    .tt-countdown-title {
        font-size: 1.1rem;
        line-height: 1.3;
    }
    
    .tt-countdown-subtitle {
        font-size: 0.75rem;
        line-height: 1.4;
    }
    
    .tt-countdown-timer {
        gap: 10px;
    }
    
    .tt-countdown-box {
        gap: 8px;
    }
    
    .tt-countdown-number {
        gap: 5px;
    }
    
    .tt-digit {
        width: 40px;
        height: 50px;
        font-size: 1.5rem;
        border-radius: 6px;
    }
    
    .tt-countdown-label {
        font-size: 0.7rem;
        letter-spacing: 0.5px;
    }
    
    .tt-countdown-close {
        top: 10px;
        right: 10px;
        width: 30px;
        height: 30px;
        font-size: 0.9rem;
    }
}

/* Extra small mobile */
@media (max-width: 380px) {
    .tt-countdown-title {
        font-size: 1rem;
    }
    
    .tt-countdown-subtitle {
        font-size: 0.7rem;
    }
    
    .tt-digit {
        width: 35px;
        height: 45px;
        font-size: 1.3rem;
    }
    
    .tt-countdown-number {
        gap: 3px;
    }
    
    .tt-countdown-timer {
        gap: 8px;
    }
}

/* ===== PRINT STYLES ===== */
@media print {
    .tt-countdown-banner {
        display: none;
    }
}

/* ===== ACCESSIBILITY ===== */
.tt-countdown-close:focus {
    outline: 2px solid rgba(255, 255, 255, 0.5);
    outline-offset: 2px;
}

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {
    .tt-countdown-banner,
    .tt-digit,
    .tt-countdown-close {
        animation: none !important;
        transition: none !important;
    }
}

/* ===== HIGH CONTRAST MODE ===== */
@media (prefers-contrast: high) {
    .tt-countdown-banner {
        background: #0B4F9F;
        border: 2px solid #fff;
    }
    
    .tt-digit {
        border: 1px solid #fff;
    }
}


/* =========================================
   COOKIE CONSENT POPUP (Glassmorphism)
   ========================================= */
.cookie-banner {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 100%;
    max-width: 420px;
    background: rgba(255, 255, 255, 0.9); /* High opacity glass */
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: 16px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    padding: 1.5rem;
    z-index: 10000; /* Always on top */
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    
    /* Animation Initial State (Hidden) */
    opacity: 0;
    transform: translateY(50px) scale(0.95);
    transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1); /* Bouncy enter */
    pointer-events: none; /* Prevent clicks when hidden */
}

/* Active State (Visible) */
.cookie-banner.show {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: all;
}

.cookie-content {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.cookie-icon-box {
    width: 45px;
    height: 45px;
    background: linear-gradient(135deg, var(--ocean-teal) 0%, var(--navy-blue) 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: white;
    font-size: 1.2rem;
    box-shadow: 0 4px 10px rgba(36, 123, 160, 0.3);
}

.cookie-text h4 {
    font-size: 1.1rem;
    margin: 0 0 0.5rem 0;
    color: var(--navy-blue);
    font-weight: 700;
}

.cookie-text p {
    font-size: 0.9rem;
    color: var(--steel-grey);
    margin: 0;
    line-height: 1.5;
}

.cookie-text a {
    color: var(--ocean-teal);
    font-weight: 600;
    text-decoration: underline;
}

.cookie-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
}

/* Responsive adjustment for mobile */
@media (max-width: 576px) {
    .cookie-banner {
        bottom: 15px;
        right: 15px;
        left: 15px; /* Stretch across bottom */
        width: auto;
        max-width: none;
    }
}

/* FORCE VISIBILITY FIX */
.cookie-banner {
    display: flex !important; /* Force flex layout */
    z-index: 2147483647 !important; /* Max Z-Index possible */
}

/* Ensure the 'show' class overrides the hidden state */
.cookie-banner.show {
    opacity: 1 !important;
    transform: translateY(0) scale(1) !important;
    pointer-events: all !important;
}