/* CSS Reset & Variables */
:root {
    --primary-color: #FFC107;
    /* Vibrant Yellow/Orange */
    --primary-dark: #FF9800;
    --secondary-color: #004D40;
    /* Dark Teal/Green */
    --text-dark: #1A1A1A;
    --text-grey: #666666;
    --bg-light: #F9F9F9;
    --white: #FFFFFF;

    --font-main: 'Outfit', sans-serif;

    --shadow-soft: 0 10px 40px rgba(0, 0, 0, 0.08);
    --shadow-hover: 0 15px 45px rgba(0, 0, 0, 0.12);

    --container-width: 1200px;
    --border-radius: 12px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: var(--font-main);
}

body {
    background-color: var(--white);
    color: var(--text-dark);
    line-height: 1.6;
    -ms-overflow-style: none;  /* IE and Edge */
    scrollbar-width: none;  /* Firefox */
}

/* Hide scrollbar for Chrome, Safari and Opera */
::-webkit-scrollbar {
    display: none;
    width: 0;
}


a {
    text-decoration: none;
    color: inherit;
    transition: 0.3s;
}

ul {
    list-style: none;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

.highlight {
    color: var(--primary-dark);
    font-weight: 700;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 30px;
    font-weight: 600;
    border-radius: 50px;
    font-size: 14px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-primary {
    background: linear-gradient(90deg, #FFC107 0%, #FF9800 100%);
    color: var(--white);
    box-shadow: 0 4px 15px rgba(255, 152, 0, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 152, 0, 0.4);
}

/* Top Bar */
.top-bar {
    background-color: var(--secondary-color);
    color: var(--white);
    padding: 10px 0;
    font-size: 13px;
}

.top-bar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.social-icons a {
    margin-left: 10px;
    color: rgba(255, 255, 255, 0.8);
}

.social-icons a:hover {
    color: var(--primary-color);
}

.social-icons a:hover i {
    color: #fff;
}

.social-icons span {
    margin-right: 10px;
    font-weight: 500;
}

.contact-info span {
    margin-left: 20px;
    color: rgba(255, 255, 255, 0.9);
}

.contact-info i,
.social-icons i {
    color: var(--primary-color);
    margin-right: 5px;
}


/* Navbar */
.navbar {
    padding: 20px 0;
    background: var(--white);
    position: sticky;
    top: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    font-size: 24px;
    font-weight: 800;
    color: var(--secondary-color);
}

.brand-logo-img {
    width: 52px;
    height: 52px;
    object-fit: contain;
    border-radius: 10px;
    margin-right: 10px;
    flex-shrink: 0;
}

.logo-text {
    line-height: 1.1;
}

.logo-icon {
    color: var(--primary-dark);
    margin-right: 8px;
    font-size: 28px;
}

.nav-links {
    display: flex;
    gap: 25px;
}

.nav-links a {
    font-size: 15px;
    font-weight: 500;
    color: var(--text-dark);
    display: flex;
    align-items: center;
    gap: 4px;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--primary-dark);
}

.nav-links a i {
    font-size: 10px;
    opacity: 0.6;
}

.nav-links .search-icon {
    margin-left: 10px;
    cursor: pointer;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.mobile-menu-toggle {
    display: none;
}

.cart-icon {
    position: relative;
    font-size: 18px;
}

.cart-icon::after {
    content: '0';
    position: absolute;
    top: -5px;
    right: -8px;
    background: var(--secondary-color);
    color: white;
    font-size: 10px;
    height: 15px;
    width: 15px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
}


/* Hero Section */
.hero-section {
    position: relative;
    height: 700px;
    background-image: url('/assets/images/main.jpeg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    /* Parallax effect for premium feel */
    display: flex;
    align-items: center;
    color: var(--white);
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(12, 35, 66, 0.7);
    /* Reduced opacity to see the image better */
}

.hero-content {
    position: relative;
    z-index: 2;
    display: flex;
    justify-content: flex-start;
    text-align: left;
    /*  shibli */
    /* Horizontal alignment: Left */
    align-items: center;
    /* Vertical alignment: Center */
    padding-top: 80px;
    width: 100%;
    max-width: 100%;
    /* Allow extreme left */
    padding-left: 20px;
    /* Slight padding from edge */

}

.hero-text-wrapper {
    max-width: 600px;
    margin-left: 100px;
    margin-right: auto;
    text-align: left;
    transform: translateY(-50px);
    /* Move text a little above */
}

/* Removed hero-image-wrapper styles as image is now background */

.welcome-text {
    color: var(--primary-color);
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 20px;
    font-size: 14px;
}

.hero-text-wrapper h1 {
    font-size: 64px;
    line-height: 1.1;
    font-weight: 800;
    margin-bottom: 20px;
}

.hero-description {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 40px;
    max-width: 500px;
}

.hero-buttons {
    justify-content: flex-start;
    /*shibli */
    display: flex;
    gap: 20px;
}

.btn-primary-hero {
    background: var(--primary-color);
    color: var(--white);
    padding: 15px 35px;
    border-radius: 50px;
    font-weight: 700;
}

.btn-white-hero {
    background: var(--white);
    color: var(--text-dark);
    padding: 15px 35px;
    border-radius: 50px;
    font-weight: 700;
}

.hero-buttons i {
    margin-left: 8px;
}

.hero-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    cursor: pointer;
    transition: 0.3s;
    z-index: 5;
}

.hero-arrow:hover {
    background: var(--primary-color);
}

.hero-arrow.left {
    left: 40px;
}

.hero-arrow.right {
    right: 40px;
}


/* Features Section */
.features-section {
    position: relative;
    margin-top: -100px;
    /* Overlap Hero */
    z-index: 10;
    padding-bottom: 40px;
    /* Reduced from 80px to decrease bottom gap */
}

/* Overriding container for this section to allow extreme right alignment */
.features-section .container {
    max-width: 100%;
    padding-right: 0;
    margin-right: 0;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 15px;
    width: 65%;
    /* Occupy right side */
    margin-left: auto;
    margin-right: 20px;
    /* Touching right edge */
}

.feature-card {
    background: var(--white);
    padding: 20px 15px;
    /* Reduced vertical padding significantly to decrease height */
    border-radius: 20px;
    box-shadow: var(--shadow-soft);
    position: relative;
    overflow: hidden;
    transition: 0.3s;
    text-align: center;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
}

.card-number {
    position: absolute;
    top: 10px;
    /* Adjusted position */
    right: 15px;
    font-size: 30px;
    /* Smaller number */
    font-weight: 800;
    color: #f0f0f0;
    z-index: 0;
    -webkit-text-stroke: 1px #ddd;
}

.feature-card:hover .card-number {
    color: rgba(255, 152, 0, 0.1);
    -webkit-text-stroke: 0;
}

.icon-circle {
    width: 50px;
    /* Smaller icon circle */
    height: 50px;
    background: #FFF8E1;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto 10px;
    /* Reduced margin */
    color: var(--primary-dark);
    font-size: 22px;
    /* Smaller icon */
    position: relative;
    z-index: 1;
    transition: 0.3s;
}

.feature-card:hover .icon-circle {
    background: var(--primary-color);
    color: white;
}

.feature-card h3 {
    font-size: 20px;
    margin-bottom: 10px;
    font-weight: 700;
    position: relative;
    z-index: 1;
}

.feature-card p {
    font-size: 14px;
    color: var(--text-grey);
    line-height: 1.6;
    position: relative;
    z-index: 1;
}


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

.about-container {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 60px;
    align-items: center;
}

.about-images {
    display: flex;
    gap: 20px;
}

.image-col {
    display: flex;
    flex-direction: column;
}

.image-col.offset {
    margin-top: 40px;
}

.stat-badge {
    background: var(--primary-color);
    border-radius: 20px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    color: white;
    margin-top: -40px;
    width: 140px;
    align-self: flex-end;
    position: relative;
    z-index: 5;
    box-shadow: 0 10px 20px rgba(255, 152, 0, 0.3);
}

.stat-badge .icon {
    font-size: 24px;
    margin-bottom: 5px;
}

.stat-badge .text {
    font-size: 12px;
    line-height: 1.2;
    font-weight: 600;
}


.section-subtitle {
    display: block;
    color: var(--primary-dark);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 10px;
    font-size: 14px;
}

.section-subtitle.centered {
    text-align: center;
}

.section-title {
    font-size: 42px;
    font-weight: 800;
    color: var(--text-dark);
    line-height: 1.2;
    margin-bottom: 25px;
}

.section-title.centered {
    text-align: center;
}

.section-text {
    color: var(--text-grey);
    margin-bottom: 40px;
    font-size: 16px;
}

.section-text.centered {
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
}

.about-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-bottom: 40px;
}

.about-feature-item {
    display: flex;
    gap: 15px;
}

.af-icon {
    width: 50px;
    height: 50px;
    background: #FFF8E1;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--primary-dark);
    font-size: 20px;
    flex-shrink: 0;
}

.af-text h4 {
    font-size: 18px;
    margin-bottom: 5px;
    font-weight: 700;
}

.af-text p {
    font-size: 13px;
    color: var(--text-grey);
}

.about-quote {
    background: #F4F8FB;
    padding: 20px 30px;
    border-radius: 12px;
    position: relative;
    margin-bottom: 40px;
    font-style: italic;
    color: var(--secondary-color);
}

.quote-number {
    position: absolute;
    right: 20px;
    bottom: -15px;
    font-size: 60px;
    font-weight: 900;
    color: rgba(0, 0, 0, 0.05);
    line-height: 1;
}

.about-actions {
    display: flex;
    gap: 30px;
    align-items: center;
}

.contact-action {
    display: flex;
    align-items: center;
    gap: 15px;
}

.phone-icon {
    width: 45px;
    height: 45px;
    background: var(--secondary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.phone-text span {
    display: block;
    font-size: 12px;
    color: var(--text-grey);
}

.phone-text strong {
    display: block;
    color: var(--text-dark);
}


/* Stats Section */
.stats-section {
    background: url('https://images.unsplash.com/photo-1523050854058-8df90110c9f1?ixlib=rb-1.2.1') no-repeat center center/cover;
    position: relative;
    padding: 60px 0;
    margin-top: 80px;
}

.stats-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 77, 64, 0.92);
    /* Dark green overlay */
}

.stats-grid {
    position: relative;
    z-index: 2;
    display: flex;
    justify-content: space-around;
    align-items: center;
    flex-wrap: wrap;
    gap: 30px;
    color: white;
    text-align: center;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
    min-width: 140px;
    transition: transform 0.3s ease;
}

.stat-item:hover {
    transform: scale(1.05); /* Optional slight hover zoom */
}

.stat-icon {
    width: 60px;
    height: 60px;
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 24px;
    color: var(--white); /* Simple flat icons in white */
    margin-bottom: 12px;
    transition: all 0.3s ease;
}

.stat-item:hover .stat-icon {
    border-color: var(--primary-color);
    background: rgba(255, 193, 7, 0.1);
    color: var(--primary-color);
}

.stat-info h3 {
    font-size: 38px;
    font-weight: 700;
    margin-bottom: 4px;
    color: #ffffff;
    line-height: 1.1;
}

.stat-info p {
    font-size: 14px;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.7);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Courses Header */
.courses-header {
    padding: 80px 0 40px;
    text-align: center;
}

.site-url {
    font-weight: 600;
    color: var(--secondary-color);
    margin-bottom: 10px;
    display: block;
}

/* Testimonials Section */
.testimonials-section {
    padding: 80px 0;
    background: #FAFAFA;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.testimonial-card {
    background: white;
    padding: 35px;
    border-radius: 20px;
    box-shadow: var(--shadow-soft);
    position: relative;
    border-bottom: 3px solid transparent;
    transition: 0.3s;
}

.testimonial-card:hover {
    transform: translateY(-5px);
    border-bottom: 3px solid var(--primary-color);
}

.t-rating {
    color: #FFC107;
    margin-bottom: 20px;
    font-size: 14px;
}

.t-text {
    color: var(--text-grey);
    font-size: 15px;
    font-style: italic;
    margin-bottom: 25px;
    line-height: 1.6;
}

.t-user {
    display: flex;
    align-items: center;
    gap: 15px;
}

.t-user img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
}

.t-info h4 {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-dark);
}

.t-info span {
    font-size: 13px;
    color: var(--text-grey);
    display: block;
}


/* Pricing Section */
.pricing-section {
    padding: 80px 0;
    background: white;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    align-items: center;
    /* Align cards if they have different heights */
}

.pricing-card {
    background: white;
    padding: 40px;
    border-radius: 20px;
    border: 1px solid #eee;
    text-align: center;
    transition: 0.3s;
    position: relative;
    overflow: hidden;
}

.pricing-card:hover {
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
    border-color: transparent;
    transform: translateY(-5px);
}

.pricing-card.recommended {
    background: #FFFBF0;
    /* Light yellow tint */
    border: 2px solid var(--primary-color);
    padding: 50px 40px;
    /* Slightly larger */
    box-shadow: 0 10px 30px rgba(255, 193, 7, 0.15);
}

.pricing-card .badge {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary-color);
    color: white;
    padding: 8px 20px;
    border-radius: 0 0 15px 15px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
}

.plan-header {
    margin-bottom: 30px;
}

.plan-header h3 {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 10px;
}

.plan-header .price {
    font-size: 42px;
    font-weight: 800;
    color: var(--primary-dark);
}

.plan-header .price span {
    font-size: 16px;
    color: var(--text-grey);
    font-weight: 400;
}

.plan-features {
    margin-bottom: 30px;
    text-align: left;
}

.plan-features li {
    margin-bottom: 15px;
    color: var(--text-dark);
    font-size: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.plan-features li i {
    color: var(--secondary-color);
    font-size: 14px;
}

.plan-features li.disabled {
    color: #ccc;
}

.plan-features li.disabled i {
    color: #ccc;
}

.pricing-card .btn-outline {
    background: transparent;
    border: 2px solid var(--text-dark);
    color: var(--text-dark);
    width: 100%;
}

.pricing-card .btn-outline:hover {
    background: var(--text-dark);
    color: white;
}

.pricing-card .btn-primary {
    width: 100%;
}


/* Contact Section */
.contact-section {
    padding: 80px 0;
    background: #F4F8FB;
}

.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.contact-text p {
    color: var(--text-grey);
    margin-bottom: 30px;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.cd-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
}

.cd-item .icon {
    width: 50px;
    height: 50px;
    background: white;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--primary-color);
    font-size: 20px;
    box-shadow: var(--shadow-soft);
}

.cd-item h4 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 5px;
}

.contact-form-wrapper {
    background: white;
    padding: 40px;
    border-radius: 20px;
    box-shadow: var(--shadow-soft);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
    width: 100%;
    padding: 15px;
    border: 1px solid #eee;
    border-radius: 10px;
    font-size: 14px;
    transition: 0.3s;
    background: #F9F9F9;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
    border-color: var(--primary-color);
    background: white;
    outline: none;
}

.contact-form button {
    width: 100%;
}


/* FAQ Section */
.faq-section {
    padding: 80px 0;
    max-width: 800px;
    margin: 0 auto;
    /* Centered narrow section */
}

.faq-wrapper {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.faq-item {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid #eee;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.02);
}

.faq-item details {
    padding: 20px;
    cursor: pointer;
    transition: 0.3s;
}

.faq-item details[open] {
    background: #FFFBF0;
}

.faq-item summary {
    font-weight: 600;
    font-size: 16px;
    color: var(--text-dark);
    list-style: none;
    /* Hide default triangle */
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item summary::after {
    content: '+';
    font-size: 24px;
    font-weight: 300;
    color: var(--primary-dark);
}

.faq-item details[open] summary::after {
    content: '-';
}

.faq-content {
    padding-top: 15px;
    color: var(--text-grey);
    font-size: 14px;
    line-height: 1.6;
}


/* Footer */
.footer-section {
    background: var(--secondary-color);
    color: rgba(255, 255, 255, 0.86);
    padding: 80px 0 0;
    font-size: 14px;
    backdrop-filter: none;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr 1.5fr;
    gap: 40px;
    padding-bottom: 60px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-logo {
    color: #ffffff;
    margin-bottom: 20px;
}

.footer-col p {
    color: rgba(255, 255, 255, 0.86);
    margin-bottom: 20px;
    line-height: 1.6;
}

.footer-social a {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.1);
    width: 35px;
    height: 35px;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    margin-right: 10px;
    transition: 0.3s;
}

.footer-social a:hover {
    background: var(--primary-color);
    color: white;
}

.footer-social a:hover i {
    color: white;
}

.footer-col h3 {
    font-size: 18px;
    margin-bottom: 30px;
    font-weight: 700;
    color: #ffffff;
}

.footer-col ul li {
    margin-bottom: 15px;
}

.footer-col ul li a {
    color: rgba(255, 255, 255, 0.86);
    transition: 0.3s;
}

.footer-col ul li a:hover {
    color: var(--primary-color);
    padding-left: 5px;
}

.newsletter-form {
    position: relative;
}

.newsletter-form input {
    width: 100%;
    padding: 15px;
    border-radius: 50px;
    border: none;
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

.newsletter-form button {
    position: absolute;
    right: 5px;
    top: 5px;
    height: 38px;
    width: 38px;
    border-radius: 50%;
    background: var(--primary-color);
    border: none;
    color: white;
    cursor: pointer;
    transition: 0.3s;
}

.newsletter-form button:hover {
    background: var(--primary-dark);
}

.footer-bottom {
    padding: 25px 0;
    text-align: center;
    color: #222222;
}

.courses-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.course-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: 0.3s;
}

.course-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
}

.course-card:hover .course-image img {
    transform: scale(1.05);
    transition: 0.5s;
}

.course-image {
    position: relative;
    height: 220px;
    overflow: hidden;
    /* For zoom effect */
}

.course-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.course-price {
    position: absolute;
    top: 20px;
    right: 20px;
    background: var(--primary-color);
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 13px;
}

.course-content {
    padding: 20px;
}

.course-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-grey);
    font-size: 14px;
}

.stars {
    color: var(--primary-color);
    font-size: 12px;
}

/* ============================
   Course Details Page Styles
   ============================ */

/* Page Header */
.page-header {
    background: linear-gradient(rgba(0, 77, 64, 0.9), rgba(0, 77, 64, 0.9)), url('https://images.unsplash.com/photo-1523050854058-8df90110c9f1?ixlib=rb-1.2.1') no-repeat center center/cover;
    padding: 50px 0;
    margin-bottom: 50px;
    text-align: center;
    color: white;
}

.page-title {
    font-size: 48px;
    font-weight: 800;
    margin-bottom: 15px;
}

.breadcrumb {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.8);
}

.breadcrumb a {
    color: rgba(255, 255, 255, 0.8);
}

.breadcrumb a:hover {
    color: var(--primary-color);
}

.breadcrumb .current {
    color: var(--primary-color);
    font-weight: 600;
}

/* Course Content Layout */
.course-details-section {
    padding: 80px 0;
    background: #FAFAFA;
}

.course-details-container {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
}

/* Left Column */
.course-info {
    background: white;
    padding: 40px;
    border-radius: 20px;
    box-shadow: var(--shadow-soft);
}

.sub-title {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 20px;
    border-left: 5px solid var(--primary-color);
    padding-left: 15px;
}

.course-overview p {
    color: var(--text-grey);
    margin-bottom: 30px;
    font-size: 16px;
}

.course-detail-img {
    width: 100%;
    border-radius: 12px;
    margin-bottom: 40px;
    height: 350px;
    object-fit: cover;
}

.info-blocks {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 40px;
    background: #F9F9F9;
    padding: 30px;
    border-radius: 12px;
}

.info-block {
    text-align: center;
}

.info-block i {
    font-size: 30px;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.info-block h4 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 5px;
}

.info-block p {
    font-size: 14px;
    color: var(--text-grey);
}

.tab-content h3 {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.tab-content h3 i {
    color: var(--primary-color);
}

.custom-list {
    list-style: none;
}

.custom-list li {
    position: relative;
    padding-left: 30px;
    margin-bottom: 12px;
    color: var(--text-grey);
}

.custom-list li::before {
    content: '\f00c';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    position: absolute;
    left: 0;
    top: 2px;
    color: var(--primary-color);
}

.mt-40 {
    margin-top: 40px;
}

/* Sidebar & Form */
.sticky-sidebar {
    position: sticky;
    top: 100px;
}

.apply-form-card {
    background: white;
    padding: 35px;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    border-top: 5px solid var(--primary-color);
}

.apply-form-card h3 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 10px;
}

.apply-form-card p {
    color: var(--text-grey);
    margin-bottom: 25px;
    font-size: 14px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-dark);
}

.form-group label i {
    color: var(--primary-color);
    width: 20px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #eee;
    background: #fdfdfd;
    border-radius: 8px;
    font-family: inherit;
    font-size: 14px;
    transition: 0.3s;
}

/* =========================================
   ANIMATIONS
   ========================================= */

.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Hero Entrance Animations */
.hero-text-wrapper h1 {
    animation: fadeInUp 1s ease-out forwards;
    opacity: 0;
}

.hero-description {
    animation: fadeInUp 1s ease-out 0.3s forwards;
    opacity: 0;
}

.hero-buttons {
    animation: fadeInUp 1s ease-out 0.6s forwards;
    opacity: 0;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}


.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--primary-color);
    background: white;
    outline: none;
    box-shadow: 0 0 0 3px rgba(255, 193, 7, 0.1);
}

.full-width {
    width: 100%;
}

.sidebar-widget {
    background: var(--secondary-color);
    color: white;
    padding: 30px;
    border-radius: 20px;
    text-align: center;
}

.help-contact {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-top: 20px;
    background: rgba(255, 255, 255, 0.1);
    padding: 15px;
    border-radius: 50px;
}

.hc-icon {
    font-size: 20px;
    color: var(--primary-color);
}

/* Responsive Styles for Details Page */
@media (max-width: 900px) {
    .course-details-container {
        grid-template-columns: 1fr;
    }

    .course-detail-img {
        height: 250px;
    }

    .info-blocks {
        grid-template-columns: 1fr;
    }
}

/* =========================================
   RESPONSIVE MEDIA QUERIES
   ========================================= */

@media (max-width: 1200px) {
    :root {
        --container-width: 960px;
    }

    .hero-text-wrapper {
        margin-left: 20px;
        /* Reset extreme shift for tablets/laptops */
    }

    .features-grid {
        width: 80%;
        grid-template-columns: repeat(3, 1fr);
        justify-content: center;
    }
}

@media (max-width: 991px) {
    :root {
        --container-width: 100%;
    }

    .container {
        padding: 0 30px;
    }

    /* Navbar */
    .mobile-menu-toggle {
        display: block;
        font-size: 24px;
        cursor: pointer;
        color: var(--secondary-color);
        margin-left: 20px;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: white;
        flex-direction: column;
        padding: 20px;
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
        gap: 15px;
    }

    .nav-links.active {
        display: flex;
    }

    /* Hero */
    .hero-section {
        height: auto;
        min-height: 600px;
        padding: 60px 0;
    }

    .hero-content {
        flex-direction: column;
        text-align: center;
        padding-top: 0;
    }

    .hero-text-wrapper {
        margin-left: 0;
        margin-right: 0;
        text-align: center;
        transform: none;
        max-width: 100%;
        padding: 0 20px;
    }

    .hero-buttons {
        justify-content: center;
    }

    /* Features */
    .features-grid {
        width: 100%;
        grid-template-columns: repeat(2, 1fr);
        margin: 0 auto;
    }

    .features-section .container {
        padding-right: 20px;
        /* Restore padding */
        margin-right: auto;
    }

    /* About */
    .about-container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .about-images {
        justify-content: center;
        margin-bottom: 40px;
    }

    .stat-badge {
        left: 50%;
        transform: translateX(-50%);
        margin-top: 20px;
        align-self: center;
    }

    .section-text.centered {
        margin: 0 auto 30px;
    }

    .about-actions {
        justify-content: center;
    }

    /* Stats */
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 40px;
    }

    /* Courses, Testimonials, Pricing */
    .courses-grid,
    .testimonials-grid,
    .pricing-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    /* Footer */
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {

    /* Fix overflow and spacing on mobile */
    .container {
        padding: 0 20px;
        width: 100%;
        overflow-x: hidden;
        /* Prevent horizontal scroll */
    }

    /* Typography adjustments */
    .hero-text-wrapper h1 {
        font-size: 36px;
        /* Smaller hero text */
        line-height: 1.2;
    }

    .section-title {
        font-size: 32px;
        /* Smaller section titles */
    }

    /* Hero Layout */
    .hero-section {
        min-height: auto;
        padding: 100px 0 60px;
        /* More top padding for nav */
    }

    .hero-text-wrapper {
        padding: 0;
        margin-bottom: 30px;
    }

    /* Features Grid - Full Stack */
    .features-grid {
        grid-template-columns: 1fr;
        width: 100%;
        margin: 0;
        gap: 20px;
    }

    .features-section .container {
        padding: 0 20px;
        /* Ensure padding on features container */
    }

    .features-section {
        margin-top: 0;
        /* Remove overlap fully on mobile */
        padding-bottom: 40px;
        background: #f9f9f9;
        /* Add bg to distinguish if needed */
    }

    /* About Section */
    .about-features {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .image-col {
        width: 100%;
    }

    .image-wrapper {
        width: 100% !important;
        /* Force full width images */
    }

    /* Stats */
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .stat-item {
        margin-bottom: 20px;
    }

    /* General Grids */
    .courses-grid,
    .testimonials-grid,
    .pricing-grid,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .contact-form-wrapper {
        width: 100%;
    }

    .contact-container {
        grid-template-columns: 1fr;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    /* Footer */
    .footer-bottom {
        text-align: center;
        font-size: 12px;
    }
}

@media (max-width: 480px) {

    /* Adjustments for very small screens */
    .hero-text-wrapper h1 {
        font-size: 28px;
    }

    .btn {
        padding: 10px 20px;
        font-size: 12px;
        width: 100%;
        /* Full width buttons on mobile */
        margin-bottom: 10px;
    }

    .hero-buttons {
        flex-direction: column;
        gap: 10px;
        width: 100%;
    }

    .nav-actions {
        gap: 10px;
    }

    .nav-actions .btn {
        display: none !important;
    }
}
.image-container {
  position: relative;
  width: 400px;
  height: 400px;
}

.img {
  position: absolute;
  width: 150px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0);
  opacity: 0;
}

/* ── MERN additions ─────────────────────────────── */
@keyframes shimmer {
  0%   { background-position: -200% 0; }
  100% { background-position:  200% 0; }
}
.navbar.scrolled {
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
  background: rgba(255,255,255,0.98);
}
#changing-word {
  display: inline-block;
  transition: opacity .3s ease, transform .3s ease;
  color: var(--primary-color);
}
.testimonial-card {
  background: #fff;
  padding: 30px;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.06);
  transition: transform .3s, box-shadow .3s;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.testimonial-card:hover { transform: translateY(-6px); box-shadow: 0 20px 50px rgba(0,0,0,0.12); }
.testimonial-text p { color: var(--text-grey); line-height: 1.75; font-size: 15px; }
.testimonial-author { display: flex; align-items: center; gap: 15px; }
.carousel-item { flex-shrink: 0; padding: 0 30px; }
.testimonials-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 30px; }
@media (max-width: 991px) { .testimonials-grid { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 768px) { .testimonials-grid { grid-template-columns: 1fr; } }

/* ── Deadline Badges (Part 2E) ──────────────────────────────────────────────── */
.deadline-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.75rem;
  border-radius: 20px;
  font-size: 0.78rem;
  font-weight: 600;
  margin-top: 0.5rem;
  width: fit-content;
}

.deadline-badge.static {
  background: #fff3cd;
  color: #856404;
  border: 1px solid #ffc107;
}

.deadline-badge.countdown {
  background: #fff5f5;
  color: #c0392b;
  border: 1px solid #e74c3c;
  flex-direction: column;
  align-items: flex-start;
  border-radius: 10px;
  padding: 0.5rem 0.85rem;
}

.countdown-timer {
  font-family: monospace;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: #c0392b;
}

.deadline-badge.closed {
  background: #f8f9fa;
  color: #6c757d;
  border: 1px solid #dee2e6;
  text-decoration: line-through;
  opacity: 0.8;
}

/* ── Course Card UX (Part 3A) ────────────────────────────────────────────────── */
.free-badge {
  position: absolute;
  top: 15px;
  right: 15px;
  background: #2E7D32;
  color: #fff;
  padding: 4px 12px;
  border-radius: 50px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 1px;
  z-index: 10;
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

.course-card {
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s ease;
}
.course-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 35px rgba(0,0,0,0.1);
}
.course-card:hover .course-image img {
  transform: scale(1.05);
}
.course-image img {
  transition: transform 0.5s ease;
}

.course-cta-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #f4f6f9;
  color: var(--text-dark, #1a1a1a);
  padding: 10px 16px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 13px;
  text-decoration: none;
  transition: all 0.3s ease;
  overflow: hidden;
}
.course-cta-btn:hover {
  background: var(--primary-color, #FFC107);
  color: #fff;
}
.cta-text-hover { display: none; }
.course-cta-btn:hover .cta-text-default { display: none; }
.course-cta-btn:hover .cta-text-hover { display: inline; }
.course-cta-btn .cta-arrow { transition: transform 0.3s ease; }
.course-cta-btn:hover .cta-arrow { transform: translateX(5px); }

/* ── Contact Form UX (Part 3B) ───────────────────────────────────────────────── */
.char-counter {
  font-size: 11px;
  text-align: right;
  margin-top: 4px;
  display: block;
  transition: color 0.3s ease;
}
.char-counter.normal { color: #888; }
.char-counter.warn { color: #F57C00; }
.char-counter.danger { color: #C62828; font-weight: bold; }

.btn-loading {
  position: relative;
  color: transparent !important;
  pointer-events: none;
}
.btn-loading::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 18px;
  height: 18px;
  border: 2px solid #fff;
  border-top-color: transparent;
  border-radius: 50%;
  animation: btn-spin 0.6s linear infinite;
  transform: translate(-50%, -50%);
}
@keyframes btn-spin { to { transform: translate(-50%, -50%) rotate(360deg); } }

.form-status {
  animation: fadeOutStatus 8s forwards;
}
@keyframes fadeOutStatus {
  0%, 90% { opacity: 1; }
  100% { opacity: 0; pointer-events: none; }
}

/* ── Navigation & Globals (Part 3C & 3E) ─────────────────────────────────────── */
.nav-links a.nav-active {
  color: var(--primary-color, #FFC107);
  position: relative;
}
.nav-links a.nav-active::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--primary-color, #FFC107);
  border-radius: 2px;
}

.scroll-progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  width: 0%;
  height: 3px;
  background: var(--primary-color, #FFC107);
  z-index: 99999;
  transition: width 0.1s ease-out;
}

.page-loader-bar {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  background: var(--primary-dark, #FF9800);
  z-index: 100000;
  width: 0%;
  animation: pageLoad 0.6s ease-out forwards;
}
@keyframes pageLoad { 0% { width: 0%; opacity: 1; } 90% { width: 100%; opacity: 1; } 100% { width: 100%; opacity: 0; } }

.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 45px;
  height: 45px;
  background: var(--secondary-color, #004D40);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transform: translateY(20px);
  transition: all 0.3s ease;
  z-index: 900;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}
.back-to-top.show {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}
.back-to-top:hover {
  background: var(--primary-color, #FFC107);
  transform: translateY(-5px);
}

/* ── University Logos (Part 3D) ──────────────────────────────────────────────── */
.university-card img {
  filter: grayscale(100%);
  transition: all 0.3s ease;
}
.university-card:hover img {
  filter: grayscale(0%);
  transform: scale(1.08);
}
.university-card {
  position: relative;
}
.university-card::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: 110%;
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  background: rgba(0,0,0,0.8);
  color: #fff;
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 12px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s ease;
  z-index: 10;
}
.university-card:hover::after {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ── Mobile Fixes (Part 3F) ──────────────────────────────────────────────────── */
@media (max-width: 480px) {
  .countdown-timer { font-size: 0.85rem; }
  .deadline-badge { font-size: 0.72rem; }
  .courses-grid, .testimonials-grid { grid-template-columns: 1fr !important; }
  .form-row { grid-template-columns: 1fr !important; }
}
@media (max-width: 320px) {
  .hero-text-wrapper h1 { font-size: 24px; }
  .btn { font-size: 11px; padding: 8px 12px; }
}


/* Global Mobile Fixes (Added for FULL Responsiveness) */
html, body {
    overflow-x: hidden;
    width: 100%;
}

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

@media (max-width: 768px) {
    /* Make grids single column */
    .grid, 
    .features-grid, 
    .services-grid,
    .about-features,
    .process-grid.clean-grid,
    .choose-grid,
    .footer-grid,
    .mv-container,
    .mission-grid {
        grid-template-columns: 1fr !important;
        width: 100% !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }
    
    /* Make flex containers wrap */
    .row,
    .split-layout,
    .about-container,
    .hero-content,
    .hero-buttons {
        flex-direction: column !important;
        align-items: center !important;
        text-align: center !important;
        gap: 20px !important;
    }

    /* Ensure children of row or split-layout don't overflow */
    .col-text, .col-image, .image-panel {
        width: 100% !important;
        flex: none !important;
    }

    /* Padding & Margin Scaling */
    .section, 
    section,
    .about-page-section,
    .mission-vision-section,
    .research-support-section,
    .services-section,
    .global-section,
    .choose-us-section {
        padding: 40px 0 !important;
    }
    
    .container {
        padding-left: 15px !important;
        padding-right: 15px !important;
    }
    
    .hero-text-wrapper, .hero-copy {
        margin-left: 0 !important;
        padding: 0 15px !important;
        text-align: center !important;
        transform: translateY(0) !important;
    }
    
    h1, .hero-text-wrapper h1, .page-title, .hero-copy h1 {
        font-size: 32px !important;
    }
    
    h2, .section-title {
        font-size: 26px !important;
    }

    /* Ensure text doesn't overflow */
    p, span, div {
        max-width: 100%;
        word-wrap: break-word;
    }

    /* Admin tables / Any table scrolling */
    table {
        display: block !important;
        overflow-x: auto !important;
        width: 100% !important;
    }
    
    /* Buttons full width on mobile if inside form or specific areas */
    .btn, .btn-primary, .btn-primary-hero {
        width: 100%;
        margin-bottom: 10px;
    }
    .hero-actions {
        display: flex;
        flex-direction: column;
        width: 100%;
    }
    .hero-actions a.btn {
        width: 100%;
    }
}


/* Top Bar Moving Banner (Marquee) */
.top-bar {
    overflow: hidden;
    white-space: nowrap;
    display: block;
    width: 100%;
}

.top-bar .container {
    max-width: none !important;
    width: auto !important;
    padding: 0 !important;
    margin: 0 !important;
}

.top-bar-content {
    display: inline-flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    gap: 40px !important;
    padding-left: 100vw !important; /* Start off-screen right */
    animation: marqueeBanner 25s linear infinite !important;
}

.top-bar-content:hover {
    animation-play-state: paused !important;
}

.top-bar .social-icons, 
.top-bar .contact-info {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    white-space: nowrap !important;
    align-items: center !important;
    flex-shrink: 0 !important;
}

@keyframes marqueeBanner {
    0% { transform: translateX(0); }
    100% { transform: translateX(-100%); }
}
