/* 
 * IAS EDU Platform
 * Theme System & Variables 
 */
:root {
    --color-navy: #001F3F; /* Primary Brand Color */
    --color-gold: #FFC300; /* Accent Color */
    --color-white: #FFFFFF;
    --color-light-gray: #F8F9FA; /* Background */
    --color-text-main: #333333;
    --color-text-muted: #666666;

    --font-primary: 'Cairo', sans-serif;
    
    --transition-speed: 0.3s;
}

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

body {
    font-family: var(--font-primary);
    direction: rtl; /* RTL First */
    text-align: right;
    background-color: var(--color-light-gray);
    color: var(--color-text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    color: var(--color-navy);
    margin-bottom: 1rem;
    font-weight: 700;
}

a {
    text-decoration: none;
    color: var(--color-navy);
    transition: color var(--transition-speed) ease;
}

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

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

/* UI Components: Buttons */
.btn-primary {
    background-color: var(--color-gold);
    color: var(--color-navy);
    padding: 10px 24px;
    border-radius: 6px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background-color var(--transition-speed) ease, transform 0.2s ease;
    border: none;
    cursor: pointer;
}

.btn-primary:hover {
    background-color: #e6b000;
    color: var(--color-navy);
    transform: translateY(-2px);
}

/* Layout: Header */
.site-header {
    background-color: var(--color-white);
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

.logo a {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--color-navy);
}

.logo span {
    color: var(--color-gold);
}

.main-nav ul {
    list-style: none;
    display: flex;
    gap: 24px;
}

.main-nav a {
    font-weight: 600;
    font-size: 1.05rem;
    position: relative;
}

.main-nav a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    right: 0;
    width: 0;
    height: 2px;
    background-color: var(--color-gold);
    transition: width var(--transition-speed) ease;
}

.main-nav a:hover::after {
    width: 100%;
}

/* Mobile Menu Toggle (Hidden on Desktop) */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.8rem;
    color: var(--color-navy);
    cursor: pointer;
}

/* Layout: Footer */
.site-footer {
    background-color: var(--color-navy);
    color: var(--color-white);
    padding: 60px 0 20px;
    margin-top: 60px;
}

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

.footer-widget h3 {
    color: var(--color-gold);
    font-size: 1.3rem;
    margin-bottom: 20px;
    position: relative;
    display: inline-block;
}

.footer-widget h3::after {
    content: '';
    position: absolute;
    bottom: -8px;
    right: 0;
    width: 40px;
    height: 3px;
    background-color: var(--color-white);
    border-radius: 2px;
}

.footer-widget ul {
    list-style: none;
}

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

.footer-widget a {
    color: rgba(255, 255, 255, 0.8);
    transition: color 0.2s ease;
}

.footer-widget a:hover {
    color: var(--color-gold);
}

.footer-bottom {
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 25px;
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.6);
}

/* Responsive Overrides */
@media (max-width: 992px) {
    .header-actions {
        display: none; /* Hide action button on smaller screens or move it into menu */
    }
}

@media (max-width: 768px) {
    .main-nav {
        display: none; /* Add JS later to toggle this */
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: var(--color-white);
        box-shadow: 0 4px 10px rgba(0,0,0,0.05);
        padding: 20px;
    }
    
    .main-nav.active {
        display: block;
    }
    
    .main-nav ul {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }

    .menu-toggle {
        display: block;
    }
}
