/* ===================================
   Minter Real Estate & Training - Main Styles
   Based on minterre.com design
   =================================== */

/* ===================================
   CSS Variables - Color Palette
   =================================== */
:root {
    /* Primary Colors from minterre.com */
    --primary-color: #9E1A1A;        /* Deep red - primary brand color */
    --primary-dark: #7a1515;         /* Darker red for hover states */
    --secondary-color: #000000;      /* Black accent */
    
    /* Text Colors */
    --text-dark: #333333;
    --text-body: #666666;
    --text-light: #999999;
    --text-white: #ffffff;
    
    /* Background Colors */
    --bg-white: #ffffff;
    --bg-light: #f5f7f8;
    --bg-dark: #111111;
    --bg-overlay: rgba(0, 0, 0, 0.5);
    
    /* Border & Divider Colors */
    --border-color: #eeeeee;
    --border-light: #dddddd;
    
    /* Typography */
    --font-primary: 'Poppins', 'Urbanist', sans-serif;
    --font-heading: 'Urbanist', 'Montserrat', sans-serif;
    
    /* Spacing */
    --container-max-width: 1320px;
    --section-padding: 80px 0;
    --section-padding-small: 60px 0;
    
    /* Transitions */
    --transition-speed: 0.3s;
}

/* ===================================
   Global Reset & Base Styles
   =================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: auto; 
}

body {
    font-family: var(--font-primary);
    font-size: 1rem;
    line-height: 1.7;
    color: var(--text-body);
    background-color: var(--bg-white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ===================================
   Typography
   =================================== */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.3;
    color: var(--text-dark);
    margin-bottom: 1rem;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.75rem; }
h4 { font-size: 1.5rem; }
h5 { font-size: 1.25rem; }
h6 { font-size: 1rem; }

p {
    margin-bottom: 1rem;
    line-height: 1.7;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: all var(--transition-speed) ease;
}

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

/* ===================================
   Layout & Container
   =================================== */
.container {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 15px;
}

section {
    padding: var(--section-padding);
}

/* ===================================
   Header & Navigation
   =================================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: var(--bg-dark);
    z-index: 1000; 
    transition: transform 0.3s ease;
}

/*
.header.scroll-down {
    transform: translateY(-100%);
}

.header.scroll-up {
    transform: translateY(0);
}
*/
.top-bar {
    background-color: #9E1A1A;
    padding: 0 0 2rem 0;
}

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

.header-column {
    display: flex;
    align-items: center;
}

.header-column.nav-left {
    flex: 1;
    justify-content: flex-start;
}

.header-column.nav-center {
    flex: 0 0 auto;
    justify-content: center;
}

.header-column.nav-right {
    flex: 1;
    justify-content: flex-end;
}

.logo {
    display: flex;
    justify-content: center;
    align-items: center;
}

.logo a {
    display: block;
    line-height: 0;
}

.top-bar .logo-img {
    max-width: 200px;
    height: auto;
    display: block;
}

.btn-login {
    background: transparent;
    color: var(--text-white);
    border: 2px solid var(--text-white);
    padding: 8px 24px;
}

.btn-login:hover {
    background: var(--text-white);
    color: var(--primary-color);
}

.navbar {
    background-color: white;
    padding: 0;
}

.nav-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: white;
    padding: 0.5rem 0;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
    background-color: white;
    margin: 0 auto;
}

.nav-link {
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    color: black;
    padding: 0.5rem 0;
    position: relative;
    letter-spacing: 0.5px;
}

.nav-link.active {
    font-weight: bold;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-color);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: width var(--transition-speed) ease;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.mobile-menu-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background: var(--text-white);
    transition: all var(--transition-speed) ease;
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

/* ===================================
   Buttons
   =================================== */
.btn {
    display: inline-block;
    padding: 14px 32px;
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    text-align: center;
    border-radius: 4px;
    transition: all var(--transition-speed) ease;
    cursor: pointer;
    border: 2px solid transparent;
    letter-spacing: 0.5px;
}

.btn-primary {
    background: var(--primary-color);
    color: var(--text-white);
    border-color: var(--primary-color);
}

.btn-primary:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
    color: var(--text-white);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(158, 26, 26, 0.3);
}

.btn-secondary {
    background: transparent;
    color: var(--text-dark);
    border-color: var(--text-dark);
}

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

/* Loading state */
.loading {
    text-align: center;
    padding: 3rem;
    color: var(--text-light);
    grid-column: 1 / -1;
}

/* Loading state */
.loading {
    text-align: center;
    padding: 3rem;
    color: var(--text-light);
    grid-column: 1 / -1;
}

.btn-login {
    background: transparent;
    color: var(--text-white);
    border: 2px solid var(--text-white);
    padding: 8px 24px;
}

.btn-login:hover {
    background: var(--text-white);
    color: var(--primary-color);
}

/* ===================================
   Hero Section
   =================================== */
.hero {
    min-height: calc(100vh - 80px);
    display: flex;
    align-items: center;
    justify-content: center;
    background-image: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)), url('/images/minterre_main.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    margin-top: 150px;
    padding: 100px 0;
    position: relative;
    width: 100%;
}

.hero-overlay {
    /* Not used in HTML - overlay applied via background gradient */
    display: none;
}

.hero-content {
    position: relative;
    text-align: center;
    color: var(--text-white);
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem;
    z-index: 1;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    letter-spacing: 2px;
    color: white;
}

.hero-subtitle {
    font-size: 1.5rem;
    font-weight: 500;
    margin-bottom: 2rem;
    opacity: 0.95;
    color: white;
}

.btn-hero {
    font-size: 1rem;
    padding: 16px 40px;
}

/* ===================================
   Section Headers
   =================================== */
.page-header {
    background: var(--secondary-color);
    color: var(--text-white);
    text-align: center;
    padding: 6rem 0 4rem;
    margin-top: 150px;
}

.page-header h1 {
    font-size: 3rem;
    font-weight: 800;
    color: var(--text-white);
    margin-bottom: 1rem;
    letter-spacing: 1px;
}

.page-header p {
    font-size: 1.25rem;
    color: var(--text-white);
    opacity: 0.95;
}

.page-header .subtitle {
    font-size: 0.95rem;
    opacity: 0.7;
    margin-top: 0.5rem;
}

.section-header {
    text-align: center;
    margin-bottom: 1rem;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
    letter-spacing: 1px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: var(--primary-color);
}

.section-subtitle {
    font-size: 1.125rem;
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto;
}

/* ===================================
   Content Pages (Privacy Policy, Terms, etc.)
   =================================== */
.content-page {
    background: var(--bg-white);
}

.page-content {
    padding: 4rem 0;
}

.content-wrapper {
    max-width: 900px;
    margin: 0 auto;
}

.content-wrapper h2 {
    font-size: 1.75rem;
    color: var(--text-dark);
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--border-color);
}

.content-wrapper h2:first-child {
    margin-top: 0;
}

.content-wrapper h3 {
    font-size: 1.35rem;
    color: var(--text-dark);
    margin-top: 1.75rem;
    margin-bottom: 0.75rem;
}

.content-wrapper p {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--text-body);
    margin-bottom: 1.25rem;
}

.content-wrapper ul {
    margin-bottom: 1.5rem;
    margin-left: 1.5rem;
}

.content-wrapper ul li {
    margin-bottom: 0.75rem;
    line-height: 1.7;
    color: var(--text-body);
}

.content-wrapper ul.contact-info {
    list-style: none;
    margin-left: 0;
}

.content-wrapper ul.contact-info li {
    margin-bottom: 0.5rem;
}

.content-wrapper a {
    color: var(--primary-color);
    font-weight: 500;
}

.content-wrapper a:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

/* ===================================
   Instructors Section
   =================================== */
.instructors {
    background: var(--bg-light);
}

.instructors-grid {
    display: flex;
    justify-content: center;
    gap: 25px;
    flex-wrap: wrap;
}

.instructor-card {
    background: var(--bg-white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    max-width: 300px;
    flex: 1;
    min-width: 250px;
}

.instructor-card:hover {
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.instructor-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
}

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

.instructor-info {
    padding: 1.5rem;
    text-align: center;
}

.instructor-name {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

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

.instructor-bio {
    font-size: 0.875rem;
    color: var(--text-body);
    line-height: 1.6;
    margin-bottom: 1rem;
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

/* ===================================
   Instructor Detail Page
   =================================== */
.instructor-detail {
    background: var(--bg-light);
    padding: var(--section-padding);
    padding-top: 240px;
    min-height: 60vh;
}

.instructor-detail-content {
    max-width: 1000px;
    margin: 0 auto;
    background: var(--bg-white);
    border-radius: 12px;
    padding: 3rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.instructor-header {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 2px solid var(--border-color);
}

.instructor-image-large {
    width: 100%;
    height: 300px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

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

.instructor-header-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.instructor-name-large {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.instructor-title-large {
    font-size: 1.25rem;
    color: var(--primary-color);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1.5rem;
}

.instructor-contact {
    font-size: 1rem;
    color: var(--text-body);
    margin-bottom: 0.75rem;
}

.instructor-contact i {
    color: var(--primary-color);
    margin-right: 0.5rem;
    width: 20px;
}

.instructor-contact a {
    color: var(--text-body);
    text-decoration: none;
    transition: color var(--transition-speed);
}

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

.instructor-bio-full {
    margin-bottom: 2rem;
}

.instructor-bio-full h2 {
    font-size: 1.75rem;
    color: var(--text-dark);
    margin-bottom: 1.5rem;
    font-weight: 700;
}

.bio-content {
    font-size: 1rem;
    color: var(--text-body);
    line-height: 1.8;
}

.instructor-specialties {
    margin-bottom: 2rem;
}

.instructor-specialties h2 {
    font-size: 1.75rem;
    color: var(--text-dark);
    margin-bottom: 1.5rem;
    font-weight: 700;
}

.specialties-list {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.specialties-list li {
    padding: 0.75rem 1.5rem;
    background: var(--bg-light);
    border-left: 3px solid var(--primary-color);
    font-size: 0.95rem;
    color: var(--text-dark);
}

.instructor-actions {
    display: flex;
    gap: 1rem;
    padding-top: 2rem;
    border-top: 2px solid var(--border-color);
    justify-content: center;
}

.error-message {
    text-align: center;
    padding: 3rem;
}

.error-message i {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.error-message p {
    font-size: 1.125rem;
    color: var(--text-body);
    margin-bottom: 2rem;
}

/* ===================================
   Events Section
   =================================== */
.events {
    background: var(--bg-white);
}

/* Homepage events grid - 3 columns */
.events .events-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin: 0 auto;
}

/* Events page grid - 2 columns */
.events-list .events-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.event-card {
    background: var(--bg-white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    transition: all var(--transition-speed) ease;
}

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

.event-image {
    position: relative;
    width: 50%;
    overflow: hidden;
}

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

.event-date-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: var(--primary-color);
    color: var(--text-white);
    text-align: center;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.event-date-badge .date-day {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    line-height: 1;
}

.event-date-badge .date-month {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 0.25rem;
}

/* Coming Soon Badge Styling */
.event-date-badge.coming-soon-badge {
    background: linear-gradient(135deg, grey 0%, black 100%);
    padding: 1rem 1.25rem;
}

.coming-soon-text {
    display: block;
    font-size: 0.875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    line-height: 1.3;
    text-align: center;
}

.event-date {
    background: var(--primary-color);
    color: var(--text-white);
    text-align: center;
    padding: 1.5rem 1rem;
}

.date-day {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1;
}

.date-month {
    display: block;
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 0.25rem;
}

.event-content {
    padding: 2rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.event-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.event-description {
    font-size: 0.9375rem;
    color: var(--text-body);
    line-height: 1.7;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.event-meta {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    font-size: 0.875rem;
    color: var(--text-light);
    margin-bottom: 1.5rem;
}

.event-time,
.event-location,
.event-spots {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.event-spots.full {
    color: #dc3545;
    font-weight: 600;
}

.event-meta i {
    color: var(--primary-color);
}

.event-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
}

.event-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

.event-footer .btn {
    padding: 10px 24px;
    font-size: 0.875rem;
}

.event-footer .btn:disabled,
.event-footer .btn[disabled] {
    background: #6c757d;
    border-color: #6c757d;
    cursor: not-allowed;
    opacity: 0.6;
}

.section-cta {
    text-align: center;
    margin-top: 3rem;
}

/* ===================================
   About Section
   =================================== */
.about {
    background: var(--bg-white);
}

.about-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-content {
    padding-right: 2rem;
}

.about-text {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 1.5rem;
    font-style: italic;
}

.about-description {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--text-body);
    margin-bottom: 1.5rem;
}

.about-image {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.about-image img {
    width: 100%;
    height: auto;
    display: block;
}

/* ===================================
   Testimonials Section
   =================================== */
.testimonials {
    background: var(--bg-light);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.testimonial-card {
    background: var(--bg-white);
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: all var(--transition-speed) ease;
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.12);
}

.testimonial-content {
    margin-bottom: 1.5rem;
}

.testimonial-text {
    font-size: 1rem;
    font-style: italic;
    line-height: 1.7;
    color: var(--text-body);
    position: relative;
    padding-left: 1.5rem;
}

.testimonial-text::before {
    content: '"';
    position: absolute;
    left: 0;
    top: -10px;
    font-size: 3rem;
    color: var(--primary-color);
    font-family: Georgia, serif;
    line-height: 1;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.author-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
}

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

.author-name {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 0.25rem;
}

.author-title {
    font-size: 0.875rem;
    color: var(--text-light);
}

/* ===================================
   Content Sections (About, Policies, etc.)
   =================================== */
.about-content,
.policies-content,
.events-list {
    padding: var(--section-padding);
    background: var(--bg-white);
}

.content-wrapper {
    max-width: 900px;
    margin: 0 auto;
}

.content-wrapper h2 {
    font-size: 2rem;
    color: var(--text-dark);
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.content-wrapper p {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--text-body);
    margin-bottom: 1.5rem;
}

.content-wrapper ul {
    margin-left: 2rem;
    margin-bottom: 1.5rem;
}

.content-wrapper ul li {
    margin-bottom: 0.75rem;
    line-height: 1.7;
    color: var(--text-body);
}

.pdf-download-section {
    text-align: center;
    margin: 2rem 0;
    padding: 2rem;
    background: var(--bg-light);
    border-radius: 8px;
}

.pdf-download-section .btn {
    margin: 0 auto;
}

.success-message {
    text-align: center;
    padding: 4rem 2rem;
    max-width: 600px;
    margin: 0 auto;
}

.success-message i {
    font-size: 4rem;
    color: #4CAF50;
    margin-bottom: 1.5rem;
}

.success-message h1 {
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.success-message p {
    font-size: 1.125rem;
    color: var(--text-body);
    margin-bottom: 2rem;
}

/* ===================================
   Footer
   =================================== */
.footer {
    background: #000000;
    color: var(--text-white);
    padding: 3rem 0 1.5rem;
}

.footer-content,
.footer-top {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 2rem;
}

.footer-section h3,
.footer-column h3,
.footer-title {
    color: var(--text-white);
    font-size: 1.125rem;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.footer-section p,
.footer-section a,
.footer-column p,
.footer-column a,
.footer-description {
    color: var(--text-white);
    font-size: 0.875rem;
    line-height: 1.8;
}

.footer-section a:hover,
.footer-column a:hover {
    color: var(--primary-color);
}

.footer-links,
.footer-contact {
    list-style: none;
}

.footer-links li,
.footer-contact li {
    margin-bottom: 0.75rem;
}

.footer-contact li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.footer-contact i {
    color: var(--primary-color);
    margin-top: 0.25rem;
}

.footer-logo {
    margin-bottom: 1.5rem;
}

.footer-logo img {
    max-width: 200px;
    height: auto;
}

.footer-social,
.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.social-links a,
.social-links-mobile a,
.social-link {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-white);
    transition: all var(--transition-speed) ease;
}

.social-links a:hover,
.social-links-mobile a:hover,
.social-link:hover {
    background: var(--primary-color);
    color: var(--text-white);
    transform: translateY(-3px);
}

.social-links-mobile {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 1rem;
}

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

.footer-bottom a {
    color: var(--primary-color);
}

.footer-bottom .copyright {
    margin-bottom: 0.5rem;
    color: var(--text-white);
}

/* ===================================
   Utility Classes
   =================================== */
.text-center {
    text-align: center;
}

.text-left {
    text-align: left;
}

.text-right {
    text-align: right;
}

.mb-0 { margin-bottom: 0 !important; }
.mb-1 { margin-bottom: 1rem !important; }
.mb-2 { margin-bottom: 2rem !important; }
.mb-3 { margin-bottom: 3rem !important; }

.mt-0 { margin-top: 0 !important; }
.mt-1 { margin-top: 1rem !important; }
.mt-2 { margin-top: 2rem !important; }
.mt-3 { margin-top: 3rem !important; }

.hidden { display: none !important; }

.btn-block {
    width: 100%;
    display: block;
}

/* ===================================
   Authentication Modal
   =================================== */
.auth-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
}

.auth-modal.hidden {
    display: none;
}

.auth-modal:not(.hidden) {
    display: block;
}

.auth-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: transparent;
}

.auth-modal-content {
    position: relative;
    background: var(--bg-white);
    border-radius: 12px;
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    padding: 2.5rem;
    margin: 50px auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: modalSlideIn 0.3s ease-out;
}

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

.auth-modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: transparent;
    border: none;
    font-size: 1.5rem;
    color: var(--text-light);
    cursor: pointer;
    padding: 0.5rem;
    transition: color var(--transition-speed) ease;
}

.auth-modal-close:hover {
    color: var(--text-dark);
}

.auth-modal-header {
    text-align: center;
    margin-bottom: 2rem;
}

.auth-modal-header h2 {
    color: var(--text-dark);
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.auth-modal-header p {
    color: var(--text-light);
    font-size: 1rem;
    margin-bottom: 0;
}

.auth-form {
    margin-bottom: 1rem;
}

.auth-form .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.auth-form .form-group {
    margin-bottom: 1.5rem;
}

.auth-form .form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--text-dark);
    font-size: 0.875rem;
}

.auth-form .form-group input {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid var(--border-color);
    border-radius: 6px;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color var(--transition-speed) ease;
}

.auth-form .form-group input:focus {
    outline: none;
    border-color: var(--primary-color);
}

.auth-form .form-group small {
    display: block;
    margin-top: 0.25rem;
    font-size: 0.75rem;
    color: var(--text-light);
}

.auth-form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    font-size: 0.875rem;
}

.auth-form-options a {
    color: var(--primary-color);
    text-decoration: none;
}

.auth-form-options a:hover {
    text-decoration: underline;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: var(--text-body);
    cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
    width: auto;
    cursor: pointer;
}

.checkbox-label a {
    color: var(--primary-color);
}

.auth-form-switch {
    text-align: center;
    margin-top: 1.5rem;
    font-size: 0.875rem;
    color: var(--text-body);
}

.auth-form-switch a {
    color: var(--primary-color);
    font-weight: 600;
    text-decoration: none;
}

.auth-form-switch a:hover {
    text-decoration: underline;
}

.auth-alert {
    padding: 0.75rem 1rem;
    border-radius: 6px;
    margin-top: 1rem;
    font-size: 0.875rem;
}

.auth-alert-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.auth-alert-error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.auth-alert-info {
    background: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}

/* ===================================
   Responsive Design
   =================================== */

/* Tablets and below */
@media (max-width: 1024px) {
    .container {
        max-width: 100%;
        padding: 0 20px;
    }
    
    .footer-content,
    .footer-top {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.25rem;
    }
}

@media (max-width: 768px) {
    /* Top Bar Mobile */
    .top-bar .container {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .header-column.nav-left,
    .header-column.nav-center,
    .header-column.nav-right {
        justify-content: center;
        width: 100%;
    }
    
    .top-bar .logo-img {
        max-width: 150px;
    }
    
    .social-links {
        justify-content: center;
    }
    
    /* Mobile Navigation */
    .nav-menu {
        position: fixed;
        top: 80px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 80px);
        background: var(--primary-color);
        flex-direction: column;
        padding: 2rem;
        gap: 1.5rem;
        transition: left var(--transition-speed) ease;
        box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
        overflow-y: auto;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    .nav-actions {
        width: 100%;
    }
    
    .btn-login {
        width: 100%;
        text-align: center;
    }
    
    /* Sections */
    section {
        padding: var(--section-padding-small);
    }
    
    .hero {
        min-height: calc(100vh - 80px);
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1.125rem;
    }
    
    .about-wrapper {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .about-content {
        padding-right: 0;
    }
    
    .footer-content,
    .footer-top {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .instructors-grid {
        gap: 1.5rem;
    }
    
    .instructor-card {
        max-width: 100%;
    }
    
    /* Instructor Detail Mobile */
    .instructor-detail-content {
        padding: 2rem 1.5rem;
    }
    
    .instructor-header {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    .instructor-image-large {
        max-width: 300px;
        margin: 0 auto;
    }
    
    .instructor-name-large {
        font-size: 2rem;
    }
    
    .instructor-title-large {
        font-size: 1rem;
    }
    
    .instructor-actions {
        flex-direction: column;
    }
    
    .instructor-actions .btn {
        width: 100%;
    }
    
    /* Homepage events - 2 columns on tablet */
    .events .events-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    /* Events page - 2 columns on tablet (no change) */
    .events-list .events-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .top-bar .logo-img {
        max-width: 120px;
    }
    
    .hero-title {
        font-size: 1.75rem;
    }
    
    .section-title {
        font-size: 1.75rem;
    }
    
    .events .events-grid,
    .events-list .events-grid {
        grid-template-columns: 1fr;
    }
    
    .btn {
        padding: 12px 24px;
        font-size: 0.8125rem;
    }
    
    .logo-img {
        height: 80px;
    }
}

/* ===================================
   Loading States & Animations
   =================================== */
.loading {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem;
    color: var(--text-light);
}

.loading i {
    margin-right: 0.5rem;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* ===================================
   Print Styles
   =================================== */
@media print {
    .header,
    .hero-scroll,
    .mobile-menu-toggle,
    .btn,
    .footer-social {
        display: none !important;
    }
    
    body {
        color: #000;
    }
    
    a {
        text-decoration: underline;
    }
}
