* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-blue: #2c3e50;
    --dark-blue: #1a252f;
    --light-blue: #34495e;
    --accent-blue: #3498db;
    --text-dark: #2c3e50;
    --text-light: #ecf0f1;
    --glass-bg: rgba(255, 255, 255, 0.15);
    --glass-border: rgba(255, 255, 255, 0.25);
    --white: #ffffff;
    --grey: #95a5a6;
}

body {
    font-family: 'Poppins', sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 50%, #f1f3f5 100%);
    background-attachment: fixed;
    min-height: 100vh;
}

/* Liquid Glass Effect */
.glass {
    /* Fallback background for browsers without backdrop-filter support */
    background: rgba(255, 255, 255, 0.7);
    /* Liquid glass effect with blur and saturation */
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.1);
    border-radius: 20px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

/* Gradient border for light refraction effect */
.glass::before {
    content: "";
    position: absolute;
    inset: -2px;
    border-radius: inherit;
    background: linear-gradient(
        135deg,
        rgba(255, 255, 255, 0.5) 0%,
        rgba(255, 255, 255, 0.15) 20%,
        rgba(255, 255, 255, 0.05) 40%,
        rgba(255, 255, 255, 0.1) 60%,
        rgba(255, 255, 255, 0.2) 80%,
        rgba(255, 255, 255, 0.5) 100%
    );
    -webkit-mask: 
        linear-gradient(#fff 0 0) content-box, 
        linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask: 
        linear-gradient(#fff 0 0) content-box, 
        linear-gradient(#fff 0 0);
    mask-composite: exclude;
    padding: 2px;
    pointer-events: none;
    z-index: -1;
}

.glass:hover {
    background: rgba(255, 255, 255, 0.8);
    box-shadow: 0 12px 40px 0 rgba(0, 0, 0, 0.15);
}

/* Enhanced glass effect for supported browsers */
@supports (backdrop-filter: blur(20px)) {
    .glass {
        background: rgba(255, 255, 255, 0.3);
    }
    
    .glass:hover {
        background: rgba(255, 255, 255, 0.4);
    }
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 20px 20px 20px 20px;
    padding-top: 40px;
    overflow: hidden;
}

.hero::before,
.hero::after {
    content: "";
    position: absolute;
    width: 500px;
    height: 500px;
    filter: blur(100px);
    opacity: 0.3;
    z-index: 0;
}

.hero::before {
    background: radial-gradient(circle at center, rgba(52, 152, 219, 0.15), rgba(255, 255, 255, 0));
    top: -150px;
    left: -100px;
}

.hero::after {
    background: radial-gradient(circle at center, rgba(44, 62, 80, 0.1), rgba(255, 255, 255, 0));
    bottom: -150px;
    right: -100px;
}

.hero-content {
    width: 100%;
    max-width: 1200px;
    text-align: center;
    padding: 2rem 4rem 6rem 4rem;
    /* Fallback background */
    background: rgba(255, 255, 255, 0.75);
    /* Liquid glass effect */
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 1;
    border-radius: 30px;
    overflow: hidden;
}

/* Gradient border for light refraction */
.hero-content::before {
    content: "";
    position: absolute;
    inset: -2px;
    border-radius: inherit;
    background: linear-gradient(
        135deg,
        rgba(255, 255, 255, 0.6) 0%,
        rgba(255, 255, 255, 0.2) 20%,
        rgba(255, 255, 255, 0.08) 40%,
        rgba(255, 255, 255, 0.15) 60%,
        rgba(255, 255, 255, 0.25) 80%,
        rgba(255, 255, 255, 0.6) 100%
    );
    -webkit-mask: 
        linear-gradient(#fff 0 0) content-box, 
        linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask: 
        linear-gradient(#fff 0 0) content-box, 
        linear-gradient(#fff 0 0);
    mask-composite: exclude;
    padding: 2px;
    pointer-events: none;
    z-index: -1;
}

/* Enhanced effect for supported browsers */
@supports (backdrop-filter: blur(20px)) {
    .hero-content {
        background: rgba(255, 255, 255, 0.4);
    }
}

.hero-title {
    font-size: 3rem;
    font-weight: 700;
    color: var(--dark-blue);
    margin: 0;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.hero-subtitle {
    margin-top: 1.5rem;
    font-size: 1.3rem;
    color: var(--light-blue);
    font-weight: 300;
}

/* Section Styles */
.section {
    padding: 60px 20px 80px;
    position: relative;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.3) 0%, rgba(255, 255, 255, 0.1) 100%);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

.courses-container {
    padding: 3rem;
    /* Fallback background */
    background: rgba(255, 255, 255, 0.7);
    /* Liquid glass effect */
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

/* Gradient border for courses container */
.courses-container::before {
    content: "";
    position: absolute;
    inset: -2px;
    border-radius: inherit;
    background: linear-gradient(
        135deg,
        rgba(255, 255, 255, 0.5) 0%,
        rgba(255, 255, 255, 0.15) 20%,
        rgba(255, 255, 255, 0.05) 40%,
        rgba(255, 255, 255, 0.1) 60%,
        rgba(255, 255, 255, 0.2) 80%,
        rgba(255, 255, 255, 0.5) 100%
    );
    -webkit-mask: 
        linear-gradient(#fff 0 0) content-box, 
        linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask: 
        linear-gradient(#fff 0 0) content-box, 
        linear-gradient(#fff 0 0);
    mask-composite: exclude;
    padding: 2px;
    pointer-events: none;
    z-index: -1;
}

@supports (backdrop-filter: blur(20px)) {
    .courses-container {
        background: rgba(255, 255, 255, 0.3);
    }
}

.courses-container::before {
    content: "";
    position: absolute;
    inset: -1px;
    border-radius: inherit;
    border: 1px solid rgba(255, 255, 255, 0.45);
    opacity: 0.6;
    pointer-events: none;
}

.courses-container::after {
    content: "";
    position: absolute;
    top: -20%;
    right: -15%;
    width: 260px;
    height: 260px;
    background: radial-gradient(circle at center, rgba(52, 152, 219, 0.25), rgba(255, 255, 255, 0));
    filter: blur(50px);
    opacity: 0.7;
    pointer-events: none;
}

.courses-container h2 {
    font-size: 2rem;
    font-weight: 600;
    color: var(--dark-blue);
    margin-bottom: 2rem;
    text-align: center;
}

/* Table Styles */
.table-wrapper {
    overflow-x: auto;
    border-radius: 10px;
}

.courses-table {
    width: 100%;
    border-collapse: collapse;
    /* Fallback background */
    background: rgba(255, 255, 255, 0.6);
    /* Liquid glass effect */
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-radius: 10px;
    overflow: hidden;
}

@supports (backdrop-filter: blur(20px)) {
    .courses-table {
        background: rgba(255, 255, 255, 0.4);
    }
}

.courses-table thead {
    background: rgba(44, 62, 80, 0.8);
    color: var(--white);
}

.courses-table th {
    padding: 1.2rem 1rem;
    text-align: left;
    font-weight: 600;
    font-size: 0.95rem;
    border-bottom: 2px solid var(--light-blue);
}

.courses-table td {
    padding: 1.2rem 1rem;
    border-bottom: 1px solid rgba(44, 62, 80, 0.1);
    color: var(--text-dark);
    vertical-align: top;
}

.courses-table tbody tr {
    transition: all 0.3s ease;
}

.courses-table tbody tr:hover {
    background: rgba(255, 255, 255, 0.6);
    transform: scale(1.01);
}

.courses-table tbody tr:last-child td {
    border-bottom: none;
}

.courses-table small {
    display: block;
    font-size: 0.75rem;
    color: var(--grey);
    margin-top: 0.5rem;
    font-style: italic;
}

.contact-card {
    margin-top: 2.5rem;
    padding: 1.75rem 1.5rem;
    display: grid;
    gap: 0.5rem;
    /* Fallback background */
    background: rgba(255, 255, 255, 0.7);
    /* Liquid glass effect */
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

/* Gradient border for contact card */
.contact-card::before {
    content: "";
    position: absolute;
    inset: -2px;
    border-radius: inherit;
    background: linear-gradient(
        135deg,
        rgba(255, 255, 255, 0.5) 0%,
        rgba(255, 255, 255, 0.15) 20%,
        rgba(255, 255, 255, 0.05) 40%,
        rgba(255, 255, 255, 0.1) 60%,
        rgba(255, 255, 255, 0.2) 80%,
        rgba(255, 255, 255, 0.5) 100%
    );
    -webkit-mask: 
        linear-gradient(#fff 0 0) content-box, 
        linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask: 
        linear-gradient(#fff 0 0) content-box, 
        linear-gradient(#fff 0 0);
    mask-composite: exclude;
    padding: 2px;
    pointer-events: none;
    z-index: -1;
}

@supports (backdrop-filter: blur(20px)) {
    .contact-card {
        background: rgba(255, 255, 255, 0.3);
    }
}

.contact-card h3 {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--dark-blue);
}

.contact-card p {
    color: var(--text-dark);
}

.contact-card a {
    color: var(--accent-blue);
    text-decoration: none;
    font-weight: 600;
}

.contact-card a:hover {
    color: #5dade2;
    text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2rem;
    }

    .hero-content {
        padding: 1.5rem 2rem 4rem 2rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .courses-container {
        padding: 2rem 1rem;
    }

    .courses-container h2 {
        font-size: 1.5rem;
    }

    .courses-table {
        font-size: 0.85rem;
    }

    .courses-table th,
    .courses-table td {
        padding: 0.8rem 0.5rem;
    }

    .courses-table th {
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 1.75rem;
    }

    .hero-content {
        padding: 1rem 1.5rem 3rem 1.5rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .courses-table {
        font-size: 0.75rem;
    }

    .courses-table th,
    .courses-table td {
        padding: 0.6rem 0.4rem;
    }
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Selection Color */
::selection {
    background: rgba(52, 152, 219, 0.4);
    color: var(--white);
}
