:root {
    --primary: #a61f2d; /* Logo Red */
    --primary-dark: #8b1a26;
    --secondary: #0d2b45; /* Logo Navy */
    --accent: #f8f9fa;
    --text-main: #2d3436;
    --text-muted: #636e72;
    --bg-light: #f8f9fa;
    --white: #ffffff;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s cubic-bezier(0.645, 0.045, 0.355, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

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

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-main);
    line-height: 1.6;
    background-color: var(--white);
    overflow-x: hidden;
}

h1, h2, h3, h4, .logo-text {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section {
    padding: 100px 0;
}

.bg-light {
    background-color: var(--bg-light);
}

/* Header & Nav */
header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    background: #ffffff;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    transition: var(--transition);
}

header.scrolled {
    padding: 0;
    box-shadow: var(--shadow);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 90px;
    padding: 0;
}

.logo {
    display: flex;
    align-items: center;
    padding: 0;
    margin: 0;
}

.logo-img {
    height: 80px;
    width: auto;
    display: block;
}

.nav-links {
    display: flex;
    list-style: none;
    align-items: center;
    gap: 30px;
}

.nav-links a {
    text-decoration: none;
    color: var(--secondary);
    font-weight: 500;
    font-size: 0.95rem;
    transition: var(--transition);
}

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

/* Buttons */
.btn-primary {
    background: var(--primary);
    color: var(--white) !important;
    padding: 12px 28px;
    border-radius: 50px;
    font-weight: 600;
    transition: var(--transition);
    border: none;
    cursor: pointer;
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 180, 216, 0.3);
}

.btn-outline {
    border: 2px solid var(--white);
    color: var(--white) !important;
    padding: 10px 26px;
    border-radius: 50px;
    font-weight: 600;
    transition: var(--transition);
    text-decoration: none;
}

.btn-outline:hover {
    background: var(--white);
    color: var(--primary) !important;
}

/* Hero Section */
#hero {
    height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    overflow: hidden;
    color: var(--white);
}

#hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: translate(-50%, -50%);
    z-index: -1;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(13, 43, 69, 0.9) 0%, rgba(0, 0, 0, 0.75) 100%);
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
}

.hero-content h1 {
    font-size: 4rem;
    line-height: 1.1;
    margin-bottom: 0.5rem;
}

.hero-content .second-title {
    color: var(--primary);
    font-size: 2.2rem;
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.highlight {
    color: var(--primary);
}

.hero-content p {
    font-size: 1.25rem;
    margin-bottom: 2.5rem;
    opacity: 0.9;
}

.hero-btns {
    display: flex;
    gap: 20px;
}

/* Courses Section */
.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--secondary);
}

.section-header p {
    color: var(--text-muted);
}

.categories-tabs {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 50px;
}

.tab-btn {
    padding: 10px 25px;
    border: 1px solid #ddd;
    background: transparent;
    border-radius: 50px;
    cursor: pointer;
    font-weight: 500;
    transition: var(--transition);
    font-family: 'Inter', sans-serif;
}

.tab-btn:hover, .tab-btn.active {
    background: var(--primary);
    color: var(--white);
    border-color: var(--primary);
}

.course-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
}

.course-card {
    background: var(--white);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

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

.course-img {
    height: 200px;
    overflow: hidden;
}

.course-img img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #f8f9fa;
    transition: var(--transition);
}

.course-card:hover .course-img img {
    transform: scale(1.1);
}

.course-info {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.course-cat {
    font-size: 0.75rem;
    text-transform: uppercase;
    color: var(--primary);
    font-weight: 700;
    margin-bottom: 10px;
    letter-spacing: 1px;
}

.course-info h3 {
    font-size: 1.4rem;
    margin-bottom: 15px;
    color: var(--secondary);
}

.course-info p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 20px;
}

.course-meta {
    display: flex;
    justify-content: space-between;
    margin-top: auto;
    padding-top: 20px;
    border-top: 1px solid #eee;
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* About Section */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 60px;
    align-items: center;
}

.about-text h3 {
    font-size: 2.2rem;
    margin-bottom: 1.5rem;
}

.features {
    list-style: none;
    margin-top: 2rem;
}

.features li {
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 15px;
    font-weight: 500;
}

.features li span {
    color: var(--primary);
    font-weight: 700;
}

.about-image img {
    width: 100%;
    border-radius: 30px;
    box-shadow: var(--shadow);
}

/* Footer */
footer {
    background: var(--secondary);
    color: var(--white);
    padding: 80px 0 20px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 50px;
    margin-bottom: 60px;
}

.footer-info h3 {
    letter-spacing: 3px;
    margin-bottom: 1.5rem;
}

.footer-info p {
    opacity: 0.7;
    max-width: 300px;
}

.footer-grid h4 {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: var(--white);
    text-decoration: none;
    opacity: 0.7;
    transition: var(--transition);
}

.footer-links a:hover {
    opacity: 1;
    color: var(--primary);
}

.footer-contact p {
    opacity: 0.7;
    margin-bottom: 10px;
}

.footer-bottom {
    text-align: center;
    padding-top: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.9rem;
    opacity: 0.5;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    overflow-y: auto;
}

.modal-content {
    background: var(--white);
    margin: 5% auto;
    padding: 40px;
    width: 90%;
    max-width: 800px;
    border-radius: 30px;
    position: relative;
    animation: modalFadeIn 0.4s ease-out;
}

@keyframes modalFadeIn {
    from { opacity: 0; transform: translateY(50px); }
    to { opacity: 1; transform: translateY(0); }
}

.close-modal {
    position: absolute;
    right: 30px;
    top: 20px;
    font-size: 2rem;
    cursor: pointer;
    color: var(--text-muted);
}

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

.modal-header h2 {
    font-size: 2rem;
    color: var(--secondary);
}

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

.registration-form {
    background: var(--bg-light);
    padding: 30px;
    border-radius: 20px;
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    font-size: 0.9rem;
}

.form-group input, .form-group select, .form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 10px;
    font-family: inherit;
    font-size: 1rem;
}

/* Animations */
.fade-in {
    animation: fadeIn 1s ease-out;
}

.fade-in-delay {
    animation: fadeIn 1s ease-out 0.3s backwards;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Mobile Responsiveness */
@media (max-width: 992px) {
    .hero-content h1 { font-size: 3rem; }
    .about-grid, .footer-grid { grid-template-columns: 1fr; }
    .modal-details { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    .nav-links { display: none; }
    .hero-content h1 { font-size: 2.5rem; }
    .hero-btns { flex-direction: column; }
    .course-grid { grid-template-columns: 1fr; }
}

/* Instructors Section */
.instructor-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.instructor-card {
    background: var(--white);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    text-align: center;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.instructor-card:hover {
    transform: translateY(-10px);
}

.instructor-img {
    height: 300px;
    overflow: hidden;
}

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

.instructor-info-box {
    padding: 25px;
}

.instructor-info-box h3 {
    font-size: 1.25rem;
    color: var(--secondary);
    margin-bottom: 5px;
}

.instructor-title {
    font-size: 0.85rem;
    color: var(--primary);
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 15px;
    letter-spacing: 1px;
}

.instructor-bio {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.5;
}

/* Page Header */
.page-header-simple {
    padding: 180px 0 100px;
    background: url('/experts_header.png') no-repeat center center/cover;
    position: relative;
    color: var(--white);
    text-align: center;
}

.page-header-simple::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(13, 43, 69, 0.95) 0%, rgba(13, 43, 69, 0.7) 100%);
    z-index: 1;
}

.page-header-simple .container {
    position: relative;
    z-index: 2;
}

.page-header-simple h1 {
    font-size: 3rem;
    margin-bottom: 10px;
}

.page-header-simple p {
    opacity: 0.8;
    font-size: 1.2rem;
}

.active-link {
    color: var(--primary) !important;
    font-weight: 700 !important;
}

/* Contact Page Styles */
.contact-grid-page {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 60px;
    align-items: start;
}

.contact-form-container {
    background: var(--white);
    padding: 40px;
    border-radius: 30px;
    box-shadow: var(--shadow);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

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

.contact-info-container {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.info-item {
    display: flex;
    gap: 20px;
    align-items: center;
}

.info-icon {
    font-size: 1.8rem;
    width: 60px;
    height: 60px;
    background: var(--bg-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.info-content h4 {
    color: var(--secondary);
    margin-bottom: 5px;
}

.info-content p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.social-icon-btn {
    width: 40px;
    height: 40px;
    background: var(--secondary);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 0.8rem;
    font-weight: 700;
    transition: var(--transition);
}

.social-icon-btn:hover {
    background: var(--primary);
    transform: translateY(-3px);
}

@media (max-width: 992px) {
    .contact-grid-page { grid-template-columns: 1fr; }
    .form-row { grid-template-columns: 1fr; }
}
