/* Beheeria.com - Main Styles */

/* Reset styles and basic settings */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Color palette from templates */
:root {
    --primary-bg: #F8F5F0;        /* Light beige/cream */
    --dark-bg: #2C1A2A;           /* Deep plum/burgundy */
    --accent-orange: #FF8C00;     /* Orange */
    --accent-pink: #E94E77;       /* Pink */
    --accent-yellow: #FFD700;      /* Yellow */
    --text-dark: #333333;         /* Dark text */
    --text-light: #555555;        /* Light text */
    --text-white: #FFFFFF;        /* White text */
    --gradient-primary: linear-gradient(135deg, #FF8C00, #E94E77);
    --gradient-secondary: linear-gradient(135deg, #FFD700, #FF8C00);
}

/* Typography */
body {
    font-family: 'Inter', 'Open Sans', sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--primary-bg);
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', 'Lora', serif;
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 {
    font-size: 3rem;
    color: var(--text-dark);
}

h2 {
    font-size: 2.5rem;
    color: var(--text-dark);
}

h3 {
    font-size: 2rem;
    color: var(--text-dark);
}

h4 {
    font-size: 1.5rem;
    color: var(--text-dark);
}

p {
    margin-bottom: 1rem;
    color: var(--text-light);
}

/* Containers */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: 80px 0;
}

.section-dark {
    background-color: var(--dark-bg);
    color: var(--text-white);
}

.section-dark h1,
.section-dark h2,
.section-dark h3,
.section-dark h4,
.section-dark h5,
.section-dark h6 {
    color: var(--text-white);
}

.section-dark p {
    color: rgba(255, 255, 255, 0.8);
}

/* Header */
.header {
    background-color: var(--primary-bg);
    padding: 20px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

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

.logo {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-dark);
    text-decoration: none;
    z-index: 1001;
}

.menu-toggle {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    border: 0;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    overflow: hidden;
    white-space: nowrap;
}

.menu-icon {
    display: none;
    flex-direction: column;
    cursor: pointer;
    z-index: 1001;
    padding: 5px;
    position: relative;
    -webkit-tap-highlight-color: transparent;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

.menu-icon span {
    width: 28px;
    height: 3px;
    background-color: var(--text-dark);
    margin: 4px 0;
    transition: all 0.3s ease;
    border-radius: 2px;
}

.main-nav {
    display: flex;
}

.nav-list {
    display: flex;
    list-style: none;
    gap: 35px;
    margin: 0;
    padding: 0;
}

.nav-item {
    margin: 0;
}

.nav-link {
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 500;
    font-size: 1rem;
    transition: color 0.3s ease;
    padding: 8px 0;
    display: block;
}

.nav-link:hover {
    color: var(--accent-orange);
}

.nav-link:active,
.nav-link.active {
    color: var(--accent-orange);
    font-weight: 600;
}

.btn {
    padding: 12px 24px;
    border: none;
    border-radius: 25px;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    cursor: pointer;
}

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

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 140, 0, 0.3);
}

.btn-secondary {
    background-color: var(--dark-bg);
    color: var(--text-white);
    border: 2px solid var(--dark-bg);
}

.btn-secondary:hover {
    background-color: transparent;
    color: var(--dark-bg);
}


/* Hero section */
.hero {
    padding: 100px 0;
    text-align: center;
    background-color: var(--primary-bg);
}

.hero h1 {
    font-size: 4rem;
    margin-bottom: 20px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.hero p {
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto 40px;
    color: var(--text-light);
}

/* Grid */
.grid {
    display: grid;
    gap: 30px;
}

.grid-2 {
    grid-template-columns: repeat(2, 1fr);
}

.grid-3 {
    grid-template-columns: repeat(3, 1fr);
}

.grid-4 {
    grid-template-columns: repeat(4, 1fr);
}

/* Cards */
.card {
    background-color: var(--text-white);
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.card-dark {
    background-color: var(--dark-bg);
    color: var(--text-white);
}

.card-dark h3,
.card-dark h4 {
    color: var(--text-white);
}

.card-dark p {
    color: rgba(255, 255, 255, 0.8);
}

/* Icons */
.icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    font-size: 24px;
    color: var(--text-white);
}

.icon-orange {
    background: var(--gradient-primary);
}

.icon-dark {
    background-color: var(--dark-bg);
}

/* Images */
.image-placeholder {
    width: 100%;
    height: 300px;
    background-color: #f0f0f0;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    font-size: 14px;
    margin-bottom: 20px;
}

.image-placeholder img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
}

/* Forms */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    color: var(--text-dark);
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.3s ease;
    font-family: 'Inter', 'Open Sans', sans-serif;
    background-color: var(--text-white);
}

.form-group select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23333' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 15px center;
    padding-right: 40px;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--accent-orange);
}

/* Fixed size for textarea */
.form-group textarea {
    resize: none;
    min-height: 120px;
    max-height: 120px;
    overflow-y: auto;
}

/* Footer */
.footer {
    background-color: var(--dark-bg);
    color: var(--text-white);
    padding: 60px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-logo {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 20px;
}

.footer p {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 20px;
}

.footer h4 {
    color: var(--text-white);
    margin-bottom: 20px;
}

.footer ul {
    list-style: none;
}

.footer ul li {
    margin-bottom: 10px;
}

.footer ul li a {
    color: var(--text-white);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer ul li a:hover {
    color: var(--accent-orange);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding-top: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
    color: var(--text-white);
}

.footer-bottom a {
    color: var(--text-white);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-bottom a:hover {
    color: var(--accent-orange);
}

/* Responsiveness */
@media (max-width: 968px) {
    .menu-icon {
        display: flex;
        min-width: 44px;
        min-height: 44px;
        align-items: center;
        justify-content: center;
    }
    
    .main-nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background-color: var(--primary-bg);
        box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
        transition: right 0.4s ease;
        padding-top: 80px;
        overflow-y: auto;
        z-index: 1000;
    }
    
    .nav-list {
        flex-direction: column;
        gap: 0;
        padding: 20px;
    }
    
    .nav-item {
        border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    }
    
    .nav-link {
        padding: 18px 15px;
        font-size: 1.1rem;
    }
    
    .menu-toggle:checked ~ .main-nav {
        right: 0;
    }
    
    .menu-toggle:checked + .menu-icon span:nth-child(1) {
        transform: rotate(45deg) translate(9px, 9px);
    }
    
    .menu-toggle:checked + .menu-icon span:nth-child(2) {
        opacity: 0;
    }
    
    .menu-toggle:checked + .menu-icon span:nth-child(3) {
        transform: rotate(-45deg) translate(9px, -9px);
    }
    
}

@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .grid-2,
    .grid-3,
    .grid-4 {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
    
    .container {
        padding: 0 15px;
    }
    
    .section {
        padding: 40px 0;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 2rem;
    }
    
    .hero p {
        font-size: 1rem;
    }
    
    h2 {
        font-size: 1.8rem;
    }
    
    h3 {
        font-size: 1.5rem;
    }
    
    h4 {
        font-size: 1.2rem;
    }
    
    .card {
        padding: 20px;
    }
    
    .btn {
        padding: 10px 20px;
        font-size: 14px;
    }
    
    .logo {
        font-size: 1.5rem;
    }
    
    .main-nav {
        width: 100%;
        right: -100%;
    }
    
    .hero {
        padding: 60px 0;
    }
    
    .icon {
        width: 50px;
        height: 50px;
        font-size: 20px;
    }
}

/* Additional utilities */
.text-center {
    text-align: center;
}

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

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

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

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

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

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

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

.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

/* Special styles for courses */
.course-card {
    background-color: var(--text-white);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.course-image {
    width: 100%;
    height: 200px;
    background-color: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    font-size: 14px;
    overflow: hidden;
}

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

.course-content {
    padding: 25px;
}

.course-title {
    font-size: 1.3rem;
    margin-bottom: 10px;
    color: var(--text-dark);
}

.course-description {
    color: var(--text-light);
    margin-bottom: 15px;
}

.course-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
    color: var(--text-light);
}

.course-level {
    background-color: var(--accent-orange);
    color: var(--text-white);
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 12px;
}

