/* ==========================================
   CAPITALEDUCATION MAGAZINE - MAIN STYLESHEET
   Colors: Midnight Teal #081B24, Neon Coral #FF3E6C, 
           Solar Amber #FFB000, Glacier Mint #C9FFF2, 
           Warm Graphite #262A33, Off-White #F6F3EF
   ========================================== */

/* === ROOT & RESET === */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --midnight-teal: #081B24;
    --neon-coral: #FF3E6C;
    --solar-amber: #FFB000;
    --glacier-mint: #C9FFF2;
    --warm-graphite: #262A33;
    --off-white: #F6F3EF;
    --gradient-1: linear-gradient(135deg, var(--midnight-teal), var(--warm-graphite));
    --gradient-2: linear-gradient(45deg, var(--neon-coral), var(--solar-amber));
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: var(--warm-graphite);
    background: var(--off-white);
}

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

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease, transform 0.3s ease;
}

ul {
    list-style: none;
}

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

/* === COOKIE BANNER === */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--midnight-teal);
    color: var(--off-white);
    padding: 20px;
    z-index: 10000;
    opacity: 0;
    transition: opacity 0.3s ease;
    box-shadow: 0 -4px 20px rgba(0,0,0,0.3);
}

.cookie-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}

.cookie-content p {
    flex: 1;
    margin: 0;
    min-width: 250px;
}

.cookie-content a {
    color: var(--glacier-mint);
    text-decoration: underline;
}

.cookie-accept {
    background: var(--neon-coral);
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 600;
    transition: transform 0.3s ease, background 0.3s ease;
}

.cookie-accept:hover {
    background: var(--solar-amber);
    transform: scale(1.05);
}

/* === HEADER === */
.site-header {
    background: var(--gradient-1);
    color: var(--off-white);
    padding: 20px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 20px rgba(0,0,0,0.2);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 28px;
    font-weight: 700;
    color: var(--glacier-mint);
    transition: transform 0.3s ease;
}

.logo:hover {
    transform: scale(1.1);
}

/* Navigation */
.nav-toggle {
    display: none;
}

.nav-toggle-label {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
}

.nav-toggle-label span {
    display: block;
    width: 25px;
    height: 3px;
    background: var(--glacier-mint);
    transition: all 0.3s ease;
}

.nav-menu {
    display: flex;
    gap: 30px;
    align-items: center;
}

.nav-menu a {
    color: var(--off-white);
    font-weight: 500;
    padding: 8px 16px;
    border-radius: 5px;
    transition: background 0.3s ease, color 0.3s ease;
}

.nav-menu a:hover {
    background: var(--neon-coral);
    color: white;
}

/* Mobile Navigation */
@media (max-width: 768px) {
    .nav-toggle-label {
        display: flex;
    }
    
    .nav-menu {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--midnight-teal);
        flex-direction: column;
        gap: 0;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.4s ease;
    }
    
    .nav-toggle:checked ~ .nav-menu {
        max-height: 400px;
    }
    
    .nav-menu li {
        width: 100%;
        text-align: center;
        border-bottom: 1px solid rgba(201, 255, 242, 0.1);
    }
    
    .nav-menu a {
        display: block;
        padding: 15px;
    }
}

/* === MAIN CONTENT === */
.site-main {
    min-height: 60vh;
}

/* === SECTIONS === */
section {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    font-size: 42px;
    color: var(--midnight-teal);
    margin-bottom: 50px;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--gradient-2);
    border-radius: 2px;
}

/* === HERO SECTION === */
.hero {
    background: var(--gradient-1);
    color: var(--off-white);
    padding: 120px 0;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, var(--neon-coral) 0%, transparent 70%);
    opacity: 0.15;
    animation: float 20s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    50% { transform: translate(-50px, 50px) rotate(180deg); }
}

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

.hero h1 {
    font-size: 56px;
    margin-bottom: 20px;
    line-height: 1.2;
    animation: fadeInUp 1s ease;
}

.hero p {
    font-size: 20px;
    margin-bottom: 30px;
    opacity: 0.95;
    animation: fadeInUp 1s ease 0.2s backwards;
}

.hero .btn {
    animation: fadeInUp 1s ease 0.4s backwards;
}

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

/* === BUTTONS === */
.btn {
    display: inline-block;
    padding: 15px 40px;
    background: var(--neon-coral);
    color: white;
    font-weight: 600;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    transition: transform 0.3s ease, background 0.3s ease, box-shadow 0.3s ease;
    font-size: 16px;
}

.btn:hover {
    background: var(--solar-amber);
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(255, 62, 108, 0.3);
}

.btn-secondary {
    background: var(--glacier-mint);
    color: var(--midnight-teal);
}

.btn-secondary:hover {
    background: var(--solar-amber);
    color: white;
}

/* === CARDS === */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.card {
    background: white;
    border-radius: 12px;
    padding: 30px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Cut-corner effect */
.card::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 0 40px 40px 0;
    border-color: transparent var(--glacier-mint) transparent transparent;
    transition: border-width 0.3s ease;
}

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

.card:hover::before {
    border-width: 0 60px 60px 0;
}

.card h3 {
    color: var(--midnight-teal);
    margin-bottom: 15px;
    font-size: 24px;
}

.card p {
    color: var(--warm-graphite);
    line-height: 1.7;
}

/* === FEATURES GRID === */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-top: 50px;
}

.feature-item {
    text-align: center;
    padding: 30px;
    background: white;
    border-radius: 15px;
    transition: transform 0.3s ease;
    position: relative;
}

.feature-item::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--gradient-2);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.feature-item:hover {
    transform: scale(1.05);
}

.feature-item:hover::after {
    transform: scaleX(1);
}

.feature-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    background: var(--gradient-2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    color: white;
}

.feature-item h3 {
    color: var(--midnight-teal);
    margin-bottom: 10px;
}

/* === PRICING SECTION === */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.pricing-card {
    background: white;
    border-radius: 15px;
    padding: 40px 30px;
    text-align: center;
    position: relative;
    overflow: hidden;
    box-shadow: 0 5px 25px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.pricing-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: var(--gradient-2);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

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

.pricing-card:hover::before {
    transform: scaleX(1);
}

.pricing-image {
    margin: -40px -30px 20px;
    overflow: hidden;
    height: 200px;
}

.pricing-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

.pricing-card h3 {
    font-size: 28px;
    color: var(--midnight-teal);
    margin-bottom: 15px;
}

.pricing-card .price {
    font-size: 48px;
    color: var(--neon-coral);
    font-weight: 700;
    margin: 20px 0;
}

.pricing-card ul {
    text-align: left;
    margin: 30px 0;
}

.pricing-card ul li {
    padding: 10px 0;
    border-bottom: 1px solid var(--off-white);
    position: relative;
    padding-left: 25px;
}

.pricing-card ul li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--neon-coral);
    font-weight: bold;
}

/* === FORM SECTION === */
.form-container {
    max-width: 700px;
    margin: 50px auto;
    background: white;
    padding: 50px;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
    position: relative;
    overflow: hidden;
}

.form-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 8px;
    background: var(--gradient-2);
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--midnight-teal);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 15px;
    border: 2px solid var(--off-white);
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    font-family: inherit;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--neon-coral);
    box-shadow: 0 0 0 3px rgba(255, 62, 108, 0.1);
}

.form-group textarea {
    min-height: 120px;
    resize: vertical;
}

.checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 20px 0;
}

.checkbox-group input[type="checkbox"] {
    width: auto;
    margin-top: 4px;
    cursor: pointer;
}

.checkbox-group label {
    font-weight: normal;
    font-size: 14px;
    margin: 0;
}

.checkbox-group a {
    color: var(--neon-coral);
    text-decoration: underline;
}

.form-submit {
    text-align: center;
    margin-top: 30px;
}

.error-message {
    background: rgba(255, 62, 108, 0.1);
    color: var(--neon-coral);
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    border-left: 4px solid var(--neon-coral);
}

/* === ABOUT SECTION === */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
    margin-top: 50px;
}

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

.about-image img {
    width: 100%;
    transition: transform 0.5s ease;
}

.about-image:hover img {
    transform: scale(1.05);
}

.about-content h2 {
    color: var(--midnight-teal);
    font-size: 36px;
    margin-bottom: 20px;
}

.about-content p {
    margin-bottom: 20px;
    line-height: 1.8;
}

@media (max-width: 768px) {
    .about-grid {
        grid-template-columns: 1fr;
    }
}

/* === GALLERY === */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 50px;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.gallery-item img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    transition: transform 0.5s ease, opacity 0.3s ease;
}

.gallery-item:hover img {
    transform: scale(1.1);
    opacity: 0.8;
}

/* === CONTENT PAGES === */
.content-page {
    max-width: 900px;
    margin: 50px auto;
    padding: 50px;
    background: white;
    border-radius: 20px;
    box-shadow: 0 5px 30px rgba(0,0,0,0.1);
}

.content-page h1 {
    color: var(--midnight-teal);
    font-size: 42px;
    margin-bottom: 30px;
}

.content-page h2 {
    color: var(--midnight-teal);
    font-size: 32px;
    margin-top: 40px;
    margin-bottom: 20px;
}

.content-page h3 {
    color: var(--warm-graphite);
    font-size: 24px;
    margin-top: 30px;
    margin-bottom: 15px;
}

.content-page p {
    margin-bottom: 20px;
    line-height: 1.8;
}

.content-page ul,
.content-page ol {
    margin-left: 30px;
    margin-bottom: 20px;
}

.content-page ul li,
.content-page ol li {
    margin-bottom: 10px;
    line-height: 1.7;
}

.content-page ul li {
    list-style: disc;
}

.content-page ol li {
    list-style: decimal;
}

/* === FOOTER === */
.site-footer {
    background: var(--gradient-1);
    color: var(--off-white);
    padding: 60px 0 30px;
    margin-top: 80px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-col h3 {
    color: var(--glacier-mint);
    margin-bottom: 20px;
    font-size: 20px;
}

.footer-col p {
    line-height: 1.8;
    opacity: 0.9;
}

.footer-col ul {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-col a {
    opacity: 0.9;
    transition: opacity 0.3s ease, transform 0.3s ease;
    display: inline-block;
}

.footer-col a:hover {
    opacity: 1;
    color: var(--glacier-mint);
    transform: translateX(5px);
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(201, 255, 242, 0.2);
    opacity: 0.8;
}

/* === RESPONSIVE === */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 36px;
    }
    
    .hero p {
        font-size: 18px;
    }
    
    section {
        padding: 50px 0;
    }
    
    .section-title {
        font-size: 32px;
    }
    
    .form-container {
        padding: 30px 20px;
    }
    
    .content-page {
        padding: 30px 20px;
    }
    
    .content-page h1 {
        font-size: 32px;
    }
    
    .content-page h2 {
        font-size: 26px;
    }
}

/* === ACCESSIBILITY === */
*:focus-visible {
    outline: 3px solid var(--neon-coral);
    outline-offset: 2px;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

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

.mt-50 {
    margin-top: 50px;
}

.mb-50 {
    margin-bottom: 50px;
}

