:root {
    --bg-dark: #111111;
    --bg-light: #ece8e1;
    --val-red: #ff4655;
    --val-red-hover: #ff2a3a;
    --text-muted: #8b978f;
    --border-color: rgba(255, 255, 255, 0.1);
    
    --font-heading: 'Bebas Neue', 'Oswald', sans-serif;
    --font-body: 'Inter', sans-serif;
}
  
* {
    box-sizing: border-box;
    padding: 0;
    margin: 0;
}
  
body {
    color: var(--bg-light);
    background-color: var(--bg-dark);
    font-family: var(--font-body);
    min-height: 100vh;
    overflow-x: hidden;
    /* Subtle noise texture simulation */
    background-image: radial-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 0);
    background-size: 20px 20px;
}
  
a {
    color: inherit;
    text-decoration: none;
}
  
/* Utilities */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}
  
.py-4 {
    padding-top: 4rem;
    padding-bottom: 4rem;
}

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

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 0;
    border-bottom: 1px solid var(--border-color);
}
  
.brand {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    color: var(--val-red);
    letter-spacing: 2px;
    text-transform: uppercase;
    position: relative;
}

/* Button Styles */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2rem;
    font-family: var(--font-heading);
    font-size: 1.25rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
    position: relative;
    background: transparent;
    color: var(--bg-light);
}
  
.btn-primary {
    background: var(--val-red);
    color: var(--bg-light);
    /* Sharp cut corners */
    clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px);
}
  
.btn-primary:hover {
    background: var(--val-red-hover);
    transform: translateY(-2px);
}

.btn-primary:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}
  
.btn-outline {
    border: 1px solid var(--border-color);
}
  
.btn-outline:hover {
    border-color: var(--val-red);
    color: var(--val-red);
}
  
/* Typography */
.hero-title {
    font-family: var(--font-heading);
    font-size: clamp(4rem, 8vw, 6rem);
    text-transform: uppercase;
    line-height: 1;
    margin-bottom: 0.5rem;
    color: var(--bg-light);
    letter-spacing: 2px;
}
  
.hero-subtitle {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 3rem;
    max-width: 600px;
    border-left: 3px solid var(--val-red);
    padding-left: 1rem;
}
  
/* Grid */
.courses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2.5rem;
    padding: 2rem 0;
}

/* Card Component */
.card {
    display: flex;
    flex-direction: column;
    background: rgba(255, 255, 255, 0.04);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.05), 0 8px 32px 0 rgba(0, 0, 0, 0.3);
    position: relative;
    transition: all 0.3s ease;
    height: 100%;
}
  
.card:hover {
    border-color: var(--val-red);
    transform: translateY(-5px);
    box-shadow: 0 0 15px rgba(255, 70, 85, 0.6), 
                0 0 30px rgba(255, 70, 85, 0.4), 
                0 0 50px rgba(255, 70, 85, 0.2);
}

.card::before {
    content: '';
    position: absolute;
    top: -1px; left: -1px;
    width: 10px; height: 10px;
    border-top: 2px solid var(--val-red);
    border-left: 2px solid var(--val-red);
    opacity: 0;
    transition: opacity 0.3s;
}
.card:hover::before { opacity: 1; }
  
.card-image-container {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #000;
}
  
.card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
    opacity: 0.8;
}
  
.card:hover .card-image {
    transform: scale(1.05);
    opacity: 1;
}
  
.card-content {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    justify-content: space-between;
}
  
.card-title {
    font-family: var(--font-heading);
    font-size: 2rem;
    text-transform: uppercase;
    margin-bottom: 1rem;
    line-height: 1.1;
    letter-spacing: 1px;
}
  
.card-link-text {
    color: var(--val-red);
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    display: inline-flex;
    align-items: center;
    letter-spacing: 1px;
}

/* Empty State */
.empty-state {
    padding: 4rem 0;
    border: 1px dashed var(--border-color);
}

.empty-state h3 {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    color: var(--text-muted);
}

/* Admin Form */
.form-wrapper {
    background: rgba(255, 255, 255, 0.04);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.05), 0 8px 32px 0 rgba(0, 0, 0, 0.3);
    padding: 3rem;
    max-width: 600px;
    margin: 0 auto;
    position: relative;
}

.form-wrapper::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 4px;
    background: var(--val-red);
}
  
.form-header {
    margin-bottom: 2.5rem;
}
  
.form-header h2 {
    font-family: var(--font-heading);
    font-size: 3rem;
    text-transform: uppercase;
    color: var(--bg-light);
    letter-spacing: 2px;
    margin-bottom: 0.5rem;
}
  
.form-header p {
    color: var(--text-muted);
}
  
.form {
    display: flex;
    flex-direction: column;
}

.form-group {
    margin-bottom: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}
  
.form-label {
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    color: var(--text-muted);
    letter-spacing: 1px;
}
  
.form-input {
    width: 100%;
    padding: 1rem;
    background: rgba(0,0,0,0.4);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--bg-light);
    font-family: var(--font-body);
    font-size: 1rem;
    transition: all 0.2s;
}
  
.form-input:focus {
    outline: none;
    border-color: var(--val-red);
    background: rgba(255, 70, 85, 0.05);
}

input[type="file"] {
    padding: 0.75rem;
    cursor: pointer;
}
  
.submit-btn {
    margin-top: 1.5rem;
    width: 100%;
    padding: 1.25rem;
}
  
.message {
    margin-top: 1.5rem;
    padding: 1rem;
    text-align: center;
    font-weight: 600;
    border-left: 4px solid;
}
  
.message.success {
    background: rgba(16, 185, 129, 0.1);
    color: #34d399;
    border-color: #34d399;
}
  
.message.error {
    background: rgba(239, 68, 68, 0.1);
    color: #f87171;
    border-color: #f87171;
}
