:root {
    --primary-red: #E11D48;
    --primary-blue: #2563EB;
    --primary-green: #059669;
    --dark-text: #1F2937;
    --light-text: #6B7280;
    --bg-light: #F3F4F6;
    --white: #FFFFFF;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    color: var(--dark-text);
    background-color: var(--bg-light);
    line-height: 1.5;
}

/* Header */
header {
    background: var(--white);
    border-bottom: 1px solid #E5E7EB;
    position: sticky;
    top: 0;
    z-index: 50;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    height: 100px; /* Increased height */
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo-img {
    height: 80px;
    width: auto;
}

/* Updates Ticker */
.ticker-wrap {
    width: 100%;
    background: var(--dark-text);
    color: white;
    overflow: hidden;
    height: 40px;
    line-height: 40px;
    position: relative;
}

.ticker-content {
    display: inline-block;
    white-space: nowrap;
    animation: ticker 30s linear infinite;
    padding-left: 100%;
}

.ticker-item {
    display: inline-block;
    padding: 0 2rem;
    font-size: 0.9rem;
}

.ticker-item span {
    color: var(--primary-green);
    font-weight: bold;
    margin-right: 5px;
}

@keyframes ticker {
    0% { transform: translate3d(0, 0, 0); }
    100% { transform: translate3d(-100%, 0, 0); }
}

/* Features Section ("Why Choose Us") */
.features-section {
    padding: 80px 20px;
    background: white;
    text-align: center;
}

.features-grid {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
    margin-top: 40px;
}

.feature-box {
    background: var(--bg-light);
    padding: 30px;
    border-radius: 12px;
    width: 250px;
    transition: transform 0.3s, box-shadow 0.3s;
    border: 1px solid transparent;
}

.feature-box:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    border-color: var(--primary-blue);
    background: white;
}

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 20px;
    display: block;
}

.feature-box h3 {
    color: var(--dark-text);
    margin-bottom: 15px;
}

/* Testimonials Section */
.testimonials-section {
    padding: 80px 20px;
    background: linear-gradient(to bottom, #F0F9FF, #E0F2FE);
    text-align: center;
}

.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 40px auto 0;
}

.testimonial-card {
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    text-align: left;
    position: relative;
}

.testimonial-card::before {
    content: '"';
    font-size: 4rem;
    color: var(--primary-red);
    opacity: 0.2;
    position: absolute;
    top: 10px;
    left: 20px;
    font-family: serif;
}

.student-info {
    display: flex;
    align-items: center;
    margin-top: 20px;
}

.student-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: #ddd; /* Placeholder */
    margin-right: 15px;
}

.nav-links {
    display: flex;
    gap: 20px;
}

.nav-links a {
    text-decoration: none;
    color: var(--dark-text);
    font-weight: 500;
    font-size: 0.95rem;
}

.nav-links a:hover {
    color: var(--primary-blue);
}

.cta-button {
    background-color: var(--primary-red);
    color: var(--white);
    padding: 10px 20px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: background 0.3s;
}

.cta-button:hover {
    background-color: #BE123C;
}

/* Hero Section */
.hero-section {
    background-color: #F8FAFC;
    background-image: linear-gradient(to right, rgba(255,255,255,0.95) 40%, rgba(255,255,255,0.7) 100%), 
                      url('../images/hero_bg.png');
    background-repeat: no-repeat;
    background-position: right center;
    background-size: contain;
    padding: 100px 20px;
    text-align: left; /* Align text to left to balance image on right */
    border-bottom: 1px solid #E5E7EB;
    position: relative;
    overflow: hidden;
    min-height: 500px;
    display: flex;
    align-items: center;
}

/* Remove abstract elements */
.hero-section::before {
    display: none;
}

.hero-content {
    max-width: 600px; /* Limit width to not overlap image */
    margin: 0; /* Align left */
    position: relative;
    z-index: 1;
    padding-left: 5%; /* Add some spacing */
}

/* Enhancing title for the new layout */
.hero-title {
    font-size: 3.5rem;
    line-height: 1.2;
}

/* Mobile responsiveness for hero image */
@media (max-width: 768px) {
    .hero-section {
        background-position: center bottom;
        background-size: 80%;
        text-align: center;
        padding-bottom: 300px; /* Space for image */
        padding-top: 60px;
        align-items: flex-start;
        background-image: linear-gradient(to bottom, rgba(255,255,255,0.95) 50%, rgba(255,255,255,0.1) 100%), 
                          url('../images/hero_bg.png');
    }

    .hero-content {
        max-width: 100%;
        margin: 0 auto;
        padding-left: 0;
    }
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.hero-title {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 20px;
    color: var(--dark-text);
}

.hero-title span {
    color: var(--primary-red);
    position: relative;
    display: inline-block;
}

.hero-title span::after {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 0;
    width: 100%;
    height: 8px;
    background: rgba(225, 29, 72, 0.2);
    z-index: -1;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--light-text);
    margin-bottom: 30px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Search container styles removed */
/* .hero-btn removed */

/* Stats Banner */
.stats-banner {
    background: var(--white);
    padding: 30px 0;
    border-bottom: 1px solid #E5E7EB;
}

.stats-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 20px;
    text-align: center;
}

.stat-item h3 {
    font-size: 1.8rem;
    color: var(--primary-blue);
    margin-bottom: 5px;
}

.stat-item p {
    color: var(--light-text);
    font-size: 0.9rem;
}

/* Exam Categories */
.categories-section {
    padding: 60px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.section-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 40px;
    text-align: center;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
}

.category-card {
    background: var(--white);
    padding: 25px;
    border-radius: 12px;
    text-align: center;
    border: 1px solid #E5E7EB;
    cursor: pointer;
    transition: all 0.3s;
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    border-color: var(--primary-blue);
}

.category-icon {
    font-size: 2rem;
    margin-bottom: 15px;
    display: block;
}

.category-title {
    font-weight: 600;
    color: var(--dark-text);
}

/* Contact/Callback Section */
.callback-section {
    padding: 60px 20px;
    background: #E0F2FE; /* Light Blue tint */
}

.callback-container {
    max-width: 1000px;
    margin: 0 auto;
    background: var(--white);
    border-radius: 16px;
    overflow: hidden;
    display: flex;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.callback-info {
    flex: 1;
    padding: 40px;
    background: linear-gradient(135deg, var(--primary-blue), var(--primary-green));
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.callback-info h2 {
    font-size: 2rem;
    margin-bottom: 20px;
}

.callback-form {
    flex: 1.5;
    padding: 40px;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group {
    margin-bottom: 20px;
}

.full-width {
    grid-column: 1 / -1;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--dark-text);
}

.form-input, .form-select, .form-textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #D1D5DB;
    border-radius: 6px;
    font-family: inherit;
    font-size: 0.95rem;
}

.form-input:focus, .form-select:focus, .form-textarea:focus {
    outline: none;
    border-color: var(--primary-blue);
    ring: 2px solid var(--primary-blue);
}

.submit-btn {
    width: 100%;
    padding: 12px;
    background-color: var(--primary-red);
    color: white;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s;
}

.submit-btn:hover {
    background-color: #9F1239;
}

/* Footer */
footer {
    background: #111827;
    color: #9CA3AF;
    padding: 60px 20px 20px;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-col h4 {
    color: white;
    margin-bottom: 20px;
    font-size: 1.1rem;
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 10px;
}

.footer-col a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s;
}

.footer-col a:hover {
    color: white;
}

.footer-bottom {
    text-align: center;
    border-top: 1px solid #374151;
    padding-top: 20px;
    font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 768px) {
    .nav-links { display: none; }
    .callback-container { flex-direction: column; }
    .stats-grid { flex-direction: column; }
    .hero-title { font-size: 2rem; }
    .form-grid { grid-template-columns: 1fr; }
}
