/* ============================================================
   St. Xavier's College Clone — Main CSS (Premium Edition)
   ============================================================ */

/* CSS Variables */
:root {
    --primary-color: #1b3a5c;       /* Dark Navy Blue */
    --primary-light: #2c5270;
    --primary-dark: #0f233a;
    
    --secondary-color: #c41e3a;     /* Deep Red / Maroon */
    --secondary-light: #e63946;
    --secondary-dark: #8b1024;
    
    --accent-gold: #d4a853;         /* Accent Gold for prestige */
    
    --text-color: #2d3748;          /* Deeper charcoal */
    --text-muted: #5a6577;          /* Refined muted */
    --text-light: #8896a6;          /* Softer light */
    
    --bg-color: #ffffff;
    --light-bg: #f7f9fc;
    --dark-bg: #0f1023;
    
    --white: #ffffff;
    --black: #000000;
    
    --font-primary: 'Poppins', sans-serif;
    --font-secondary: 'Open Sans', sans-serif;
    
    --border-radius: 8px;
    --border-radius-lg: 16px;
    --border-radius-xl: 24px;
    --border-color: #e2e8f0;
    
    --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-normal: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.12);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.08), 0 2px 6px rgba(0,0,0,0.06);
    --shadow-lg: 0 12px 28px rgba(0,0,0,0.12), 0 6px 12px rgba(0,0,0,0.06);
    --shadow-xl: 0 20px 60px rgba(0,0,0,0.15), 0 10px 20px rgba(0,0,0,0.08);
    --shadow-glow-red: 0 4px 20px rgba(196, 30, 58, 0.25);
    --shadow-glow-blue: 0 4px 20px rgba(27, 58, 92, 0.2);
    
    --gradient-primary: linear-gradient(135deg, #1b3a5c 0%, #2c5270 100%);
    --gradient-secondary: linear-gradient(135deg, #c41e3a 0%, #e63946 100%);
    --gradient-dark: linear-gradient(135deg, #0f1023 0%, #1a1a2e 50%, #16213e 100%);
}

/* Reset & Base Styles */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-secondary);
    color: var(--text-color);
    background-color: var(--bg-color);
    line-height: 1.7;
    overflow-x: hidden;
}

::selection {
    background-color: rgba(196, 30, 58, 0.15);
    color: var(--primary-dark);
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-primary);
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 1rem;
    line-height: 1.3;
    letter-spacing: -0.01em;
}

p {
    margin-bottom: 1.2rem;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition-fast);
}

a:hover {
    color: var(--secondary-color);
}

ul, ol {
    list-style: none;
}

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

/* Common Layout Helpers */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: 6rem 0;
    position: relative;
}

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

/* ─── Premium Button System ─── */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 28px;
    font-family: var(--font-primary);
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: all var(--transition-normal);
    border: 2px solid transparent;
    text-align: center;
    position: relative;
    overflow: hidden;
    letter-spacing: 0.02em;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.15), transparent);
    transition: left 0.5s ease;
}

.btn:hover::before {
    left: 100%;
}

.btn-primary {
    background: var(--gradient-secondary);
    color: var(--white);
    box-shadow: 0 2px 8px rgba(196, 30, 58, 0.2);
}

.btn-primary:hover {
    color: var(--white);
    transform: translateY(-3px);
    box-shadow: var(--shadow-glow-red);
}

.btn-outline {
    background-color: transparent;
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.btn-outline:hover {
    background: var(--gradient-primary);
    border-color: var(--primary-color);
    color: var(--white);
    transform: translateY(-3px);
    box-shadow: var(--shadow-glow-blue);
}

.btn-white {
    background-color: var(--white);
    color: var(--primary-color);
    box-shadow: var(--shadow-sm);
}

.btn-white:hover {
    background-color: var(--light-bg);
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.btn-outline-white {
    background-color: transparent;
    border-color: rgba(255,255,255,0.6);
    color: var(--white);
    backdrop-filter: blur(4px);
}

.btn-outline-white:hover {
    background-color: var(--white);
    border-color: var(--white);
    color: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

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

.btn-sm {
    padding: 8px 18px;
    font-size: 0.85rem;
}

/* ─── Premium Section Headers ─── */
.section-header {
    margin-bottom: 4rem;
}

.section-label {
    font-family: var(--font-primary);
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--secondary-color);
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: 0.75rem;
    display: inline-block;
    position: relative;
    padding-left: 35px;
}

.section-label::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 25px;
    height: 2px;
    background: var(--gradient-secondary);
}

.section-title {
    font-size: 2.4rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.section-divider {
    width: 70px;
    height: 4px;
    background: var(--gradient-secondary);
    margin-bottom: 1.5rem;
    border-radius: 2px;
    position: relative;
}

.section-divider::after {
    content: '';
    position: absolute;
    right: -12px;
    top: 0;
    width: 8px;
    height: 4px;
    background-color: var(--primary-color);
    border-radius: 2px;
}

.section-divider.center {
    margin-left: auto;
    margin-right: auto;
}

.section-desc {
    max-width: 700px;
    margin: 0 auto;
    color: var(--text-muted);
    font-size: 1.05rem;
    line-height: 1.8;
}

/* ─── Alert Boxes ─── */
.alert {
    padding: 14px 22px;
    border-radius: var(--border-radius);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.95rem;
    font-weight: 500;
    backdrop-filter: blur(4px);
}

.alert-success {
    background: linear-gradient(135deg, #d1e7dd 0%, #e8f5e9 100%);
    color: #0f5132;
    border: 1px solid #badbcc;
    box-shadow: 0 2px 8px rgba(15, 81, 50, 0.08);
}

.alert-danger {
    background: linear-gradient(135deg, #f8d7da 0%, #fde8ea 100%);
    color: #842029;
    border: 1px solid #f5c2c7;
    box-shadow: 0 2px 8px rgba(132, 32, 41, 0.08);
}

/* ─── Custom Styled List ─── */
.styled-list {
    margin-bottom: 1.5rem;
}

.styled-list li {
    position: relative;
    padding-left: 30px;
    margin-bottom: 0.9rem;
    line-height: 1.6;
}

.styled-list li::before {
    content: "\f00c";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    position: absolute;
    left: 0;
    top: 3px;
    color: var(--white);
    font-size: 0.6rem;
    background: var(--gradient-secondary);
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}
