* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #d4a373;
    --secondary: #2c3e50;
    --accent: #e74c3c;
    --success: #27ae60;
    --light: #ecf0f1;
    --white: #ffffff;
    --dark: #1a1a1a;
    --text: #333333;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: var(--text);
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ========== HEADER & NAVIGATION ========== */
header {
    background: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 40px;   /* controls left & right spacing */
}
.logo {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary);
    text-decoration: none;
    display: flex;
    align-items: left;
    gap: 8px;
}
.logo img {
    height: 60px;
}
.logo span {
    font-size: 28px;
}

nav {
    display: flex;
    gap: 35px;
}

nav a {
    text-decoration: none;
    color: var(--text);
    font-weight: 500;
}

nav a:hover {
    color: var(--primary);
}

nav a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: width 0.3s;
}

nav a:hover::after {
    width: 100%;
}

.cta-header {
    display: flex;
    gap: 10px;
}

.btn {
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s;
    font-size: 14px;
}

.btn-primary {
    background: var(--primary);
    color: var(--white);
}

.btn-primary:hover {
    background: #c9985f;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(212, 163, 115, 0.4);
}

.btn-secondary {
    background: var(--success);
    color: var(--white);
}

.btn-secondary:hover {
    background: #229954;
    transform: translateY(-2px);
}

.btn-outline {
    border: 2px solid var(--primary);
    color: var(--primary);
    background: transparent;
}

.btn-outline:hover {
    background: var(--primary);
    color: var(--white);
}

/* ========== HERO SECTION ========== */
.hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: var(--white);
    padding: 100px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 600"><defs><pattern id="pattern" x="0" y="0" width="120" height="120" patternUnits="userSpaceOnUse"><circle cx="60" cy="60" r="40" fill="rgba(255,255,255,0.05)"/></pattern></defs><rect width="1200" height="600" fill="url(%23pattern)"/></svg>');
    opacity: 0.5;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero h1 {
    font-family: 'Playfair Display', serif;
    font-size: 52px;
    margin-bottom: 15px;
    animation: fadeInUp 0.8s ease;
}

.hero .subheading {
    font-size: 18px;
    margin-bottom: 35px;
    opacity: 0.95;
    animation: fadeInUp 0.8s ease 0.2s backwards;
}

.hero-cta {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
    animation: fadeInUp 0.8s ease 0.4s backwards;
}

.hero .btn {
    padding: 14px 35px;
    font-size: 16px;
}

.hero-badges {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-top: 40px;
    flex-wrap: wrap;
    animation: fadeInUp 0.8s ease 0.6s backwards;
}

.badge {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255,255,255,0.15);
    padding: 10px 20px;
    border-radius: 25px;
    font-size: 14px;
    backdrop-filter: blur(10px);
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ========== WHY CHOOSE SECTION ========== */
.why-choose {
    padding: 80px 0;
    background: var(--light);
}

.why-choose h2 {
    font-size: 42px;
    text-align: center;
    margin-bottom: 50px;
    color: var(--secondary);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.feature-card {
    background: var(--white);
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    transition: all 0.3s;
    border-top: 4px solid var(--primary);
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.12);
}

.feature-icon {
    font-size: 48px;
    margin-bottom: 15px;
    display: inline-block;
}

.feature-card h3 {
    font-size: 18px;
    margin-bottom: 10px;
    color: var(--secondary);
}

.feature-card p {
    color: #666;
    font-size: 14px;
    line-height: 1.8;
}

/* ========== COURSES SECTION ========== */
.courses {
    padding: 80px 0;
    background: var(--white);
}

.courses h2 {
    font-size: 42px;
    text-align: center;
    margin-bottom: 50px;
    color: var(--secondary);
}

.courses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 370px));
    justify-content: start;
    gap: 25px;
}

.course-card {
    background: var(--light);
    border-radius: 10px;
    overflow: hidden;
    transition: all 0.3s;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    border-left: 5px solid var(--primary);
}

.course-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.12);
}

.course-header {
    background: linear-gradient(135deg, var(--primary), #c9985f);
    color: var(--white);
    padding: 20px;
    text-align: center;
}

.course-icon {
    font-size: 40px;
    margin-bottom: 10px;
}

.course-card h3 {
    font-size: 18px;
    margin-bottom: 10px;
}

.course-body {
    padding: 20px;
}

.course-info {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
    font-size: 13px;
}

.course-info div {
    text-align: center;
    flex: 1;
}

.course-info strong {
    display: block;
    color: var(--primary);
    font-size: 14px;
}

.course-info span {
    color: #666;
}

.course-card .btn {
    width: 100%;
    text-align: center;
    padding: 10px;
}

/* ========== PLACEMENT SECTION ========== */
.placement {
    padding: 80px 0;
    background: linear-gradient(135deg, var(--secondary), #34495e);
    color: var(--white);
}

.placement h2 {
    font-size: 42px;
    text-align: center;
    margin-bottom: 20px;
}

.placement-subtitle {
    text-align: center;
    font-size: 18px;
    margin-bottom: 50px;
    opacity: 0.95;
}

.placement-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.stat-card {
    text-align: center;
    padding: 20px;
}

.stat-number {
    font-size: 48px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 10px;
}

.stat-label {
    font-size: 16px;
}

.partners-section {
    margin-top: 50px;
}

.partners-section h3 {
    text-align: center;
    margin-bottom: 30px;
    font-size: 20px;
}

.partners-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
}

.partner-box {
    background: rgba(255,255,255,0.1);
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    border: 1px solid rgba(255,255,255,0.2);
    transition: all 0.3s;
    backdrop-filter: blur(10px);
}

.partner-box:hover {
    background: rgba(255,255,255,0.2);
    transform: translateY(-5px);
}

/* ========== UNIVERSITIES SECTION ========== */
.universities {
    padding: 80px 0;
    background: var(--light);
}

.universities h2 {
    font-size: 42px;
    text-align: center;
    margin-bottom: 20px;
    color: var(--secondary);
}

.universities-intro {
    text-align: center;
    margin-bottom: 50px;
    font-size: 16px;
    color: #666;
}

.universities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 30px;
}

.uni-card {
    background: var(--white);
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    transition: all 0.3s;
}

.uni-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.12);
}

.uni-icon {
    font-size: 50px;
    margin-bottom: 15px;
}

.uni-card h3 {
    color: var(--secondary);
    font-size: 16px;
}

/* ========== TESTIMONIALS SECTION ========== */.testimonials {
    padding: 100px 0;
    background: #f8f9fc;
}

.section-title {
    text-align: center;
    font-size: 36px;
    margin-bottom: 60px;
}

/* Highlight Section */
.testimonial-highlight {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 60px;
    align-items: center;
    margin-bottom: 80px;
}

.video-box {
    width: 100%;
    aspect-ratio: 16/9;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0,0,0,0.15);
}

.video-box iframe {
    width: 100%;
    height: 100%;
}

/* Highlight Text */
.highlight-text h3 {
    font-size: 28px;
    margin-bottom: 20px;
}

.highlight-text p {
    font-size: 16px;
    line-height: 1.7;
    margin-bottom: 30px;
}

.highlight-stat h2 {
    font-size: 48px;
    color: #d4a373;
    margin: 0;
}

.highlight-stat span {
    font-size: 14px;
    color: #666;
}

/* Cards */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.testimonial-card {
    background: #ffffff;
    padding: 40px 30px;
    border-radius: 20px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.08);
    transition: 0.3s ease;
}

.testimonial-card:hover {
    transform: translateY(-8px);
}

.testimonial-card h4 {
    margin-bottom: 5px;
}

.testimonial-card span {
    font-size: 14px;
    color: #d4a373;
    display: block;
    margin-bottom: 15px;
}

.testimonial-card p {
    font-size: 15px;
    line-height: 1.6;
    color: #555;
}


/* ========== CTA SECTION ========== */
.final-cta {
    background: linear-gradient(135deg, var(--primary), #c9985f);
    color: var(--white);
    padding: 80px 0;
    text-align: center;
}

.final-cta h2 {
    font-size: 48px;
    margin-bottom: 15px;
    font-family: 'Playfair Display', serif;
}

.final-cta p {
    font-size: 18px;
    margin-bottom: 35px;
    opacity: 0.95;
}

.final-cta-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.final-cta .btn {
    padding: 15px 40px;
    font-size: 16px;
}

/* ========== FORM SECTION ========== */
.form-section {
    padding: 80px 0;
    background: var(--light);
}

.form-section h2 {
    font-size: 42px;
    text-align: center;
    margin-bottom: 50px;
    color: var(--secondary);
}

.form-container {
    max-width: 600px;
    margin: 0 auto;
    background: var(--white);
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--secondary);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 5px rgba(212, 163, 115, 0.3);
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.form-submit {
    width: 100%;
    padding: 14px;
    background: var(--primary);
    color: var(--white);
    border: none;
    border-radius: 5px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.form-submit:hover {
    background: #c9985f;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(212, 163, 115, 0.4);
}

.alert {
    padding: 15px;
    border-radius: 5px;
    margin-bottom: 20px;
    font-weight: 600;
}

.alert-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert-error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* ========== FOOTER ========== */
footer {
    background: var(--secondary);
    color: var(--white);
    padding: 40px 0 20px;
    text-align: center;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
    text-align: left;
}

.footer-section h4 {
    margin-bottom: 15px;
    color: var(--primary);
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 8px;
}

.footer-section a {
    color: #bbb;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-section a:hover {
    color: var(--primary);
}

.footer-bottom {
    border-top: 1px solid #444;
    padding-top: 20px;
    font-size: 14px;
    color: #bbb;
}

.social-links {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 20px;
}

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.1);
    color: var(--white);
    border-radius: 50%;
    transition: all 0.3s;
}

.social-links a:hover {
    background: var(--primary);
    transform: translateY(-3px);
}

/* ========== RESPONSIVE ========== */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 32px;
    }

    .hero {
        padding: 60px 0;
    }

    nav {
        gap: 15px;
        font-size: 14px;
    }

    .cta-header {
        display: none;
    }

    .courses h2,
    .why-choose h2,
    .placement h2,
    .testimonials h2,
    .universities h2,
    .form-section h2 {
        font-size: 32px;
    }

    .final-cta h2 {
        font-size: 32px;
    }

    .hero-cta {
        flex-direction: column;
    }

    .hero .btn {
        width: 100%;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-section {
        text-align: center;
    }
}
/* ===== MOBILE MENU FIX ===== */

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
}

.menu-toggle span {
    width: 28px;
    height: 3px;
    background: var(--secondary);
    border-radius: 4px;
}

/* Mobile */
@media (max-width: 768px) {

    .header-content {
        position: relative;
    }

    nav {
        position: absolute;
        top: 70px;
        left: 0;
        width: 100%;
        background: var(--white);
        display: none;
        flex-direction: column;
        text-align: center;
        padding: 20px 0;
        box-shadow: 0 10px 20px rgba(0,0,0,0.1);
        z-index: 999;
    }

    nav a {
        padding: 12px 0;
    }

    nav.active {
        display: flex;
    }

    .menu-toggle {
        display: flex;
    }

    .cta-header {
        display: none;
    }
}

/* ===== SCROLL TO TOP ===== */

#scrollTopBtn {
    position: fixed;
    bottom: 25px;
    right: 25px;
    background: var(--primary);
    color: #fff;
    border: none;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    display: none;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    z-index: 999;
}

.testimonial-video {
    position: relative;
    width: 100%;
    max-width: 900px;
    margin: 0 auto 50px;
    aspect-ratio: 16/9;
}

.testimonial-video iframe {
    width: 100%;
    height: 100%;
    border-radius: 12px;
}

.course-icon {
    width: 100%;
    height: 220px;          
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.course-image {
    width: 100%;
    height: 100%;
    object-fit: cover;     
}

/* Keep all course cards same size */
.courses-grid{
  align-items: stretch;
}

.course-card{
  height: 100%;
  display: flex;
  flex-direction: column;
}

/* Fix image area height */
.course-card .course-image{
  width: 100%;
  height: 180px;          /* keep constant */
  object-fit: cover;      /* prevent stretch */
  display: block;
}

/* Fix title height so long names don't increase card size */
.course-card .course-header h3{
  min-height: 56px;       /* enough for 2 lines */
  line-height: 28px;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;  /* max 2 lines */
  -webkit-box-orient: vertical;
}

/* Fix eligibility text area height */
.course-card .course-info span{
  display: -webkit-box;
  overflow: hidden;
  -webkit-line-clamp: 2;  /* max 2 lines */
  -webkit-box-orient: vertical;
}

/* Push buttons to bottom so layout stays equal */
.course-card .course-body{
  margin-top: auto;
}