:root {
    --primary-color: #2c3e50;
    --secondary-color: #e74c3c;
    --accent-color: #f39c12;
    --light-color: #ecf0f1;
    --dark-color: #2c3e50;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    padding: 0;
    color: var(--dark-color);
    line-height: 1.6;
}

header {
    background-color: var(--primary-color);
    color: white;
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

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

.logo {
    position: relative;
    display: inline-block;
    font-size: 1.8rem;
    font-weight: bold;
    color: white;
    text-decoration: none;
}

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

.logo .hat {
    display: none !important;
    position: absolute;
    width: 55px;
    top: -35px;
    right: 160px;
    transform-origin: bottom center;
    animation: hat-wiggle 2.5s ease-in-out infinite;
}

.logo.christmas .hat {
    display: block !important;
}

@keyframes hat-wiggle {
    0%   { transform: rotate(0deg); }
    20%  { transform: rotate(-10deg); }
    40%  { transform: rotate(8deg); }
    60%  { transform: rotate(-5deg); }
    80%  { transform: rotate(4deg); }
    100% { transform: rotate(0deg); }
}

/*.logo {*/
/*    font-size: 1.8rem;*/
/*    font-weight: bold;*/
/*    color: white;*/
/*    text-decoration: none;*/
/*}*/

/*.logo span {*/
/*    color: var(--accent-color);*/
/*}*/

.nav-links {
    display: flex;
    list-style: none;
}

.nav-links li {
    margin-left: 2rem;
}

.nav-links a {
    color: white;
    text-decoration: none;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: var(--accent-color);
}

/* Dropdown стилове */
.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-toggle {
    cursor: pointer;
}

.dropdown-menu {
    display: none;
    position: absolute;
    right: 0;
    background-color: #fff;
    min-width: 200px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
    z-index: 1;
    border-radius: 4px;
    padding: 0;
    list-style: none;
}

.dropdown:hover .dropdown-menu {
    display: block;
}

.dropdown-menu li {
    padding: 0;
}

.dropdown-menu a, .dropdown-menu button {
    color: #333;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    text-align: left;
    width: 100%;
    border: none;
    background: none;
    cursor: pointer;
}

.dropdown-menu a:hover, .dropdown-menu button:hover {
    background-color: #f8f9fa;
}

.btn-logout {
    color: #dc3545 !important;
    text-align: left !important;
    padding: 12px 16px !important;
    width: 100% !important;
    background: none !important;
    border: none !important;
}

.btn-logout:hover {
    background-color: #f8f9fa !important;
}

/**/

.hero {
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('/images/crossfire-tactics-black.jpg');
    background-size: cover;
    background-position: center;
    min-height: 110vh;
    display: flex;
    align-items: center;
    text-align: center;
    color: white;
    position: relative;
}

.hero::before {
    content: '';
    display: block;
    height: 80px;
    width: 100%;
    position: absolute;
    top: -80px;
}

.hero-content h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

.btn {
    display: inline-block;
    background-color: var(--secondary-color);
    color: white;
    padding: 0.8rem 1.5rem;
    border: none;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s;
}

.btn:hover {
    background-color: #c0392b;
}

.btn-outline {
    background-color: transparent;
    border: 2px solid white;
    margin-left: 1rem;
}

.btn-outline:hover {
    background-color: white;
    color: var(--primary-color);
}

section {
    padding: 5rem 0;
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title h2 {
    font-size: 2.5rem;
    color: var(--primary-color);
    position: relative;
    display: inline-block;
}

.section-title h2::after {
    content: '';
    position: absolute;
    width: 50%;
    height: 3px;
    background-color: var(--accent-color);
    bottom: -10px;
    left: 25%;
}

.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.feature-card {
    background-color: white;
    border-radius: 10px;
    padding: 2rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s;
}

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

.feature-card i {
    font-size: 2.5rem;
    color: var(--accent-color);
    margin-bottom: 1rem;
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
}

.modal-content {
    background-color: white;
    margin: 10% auto;
    padding: 2rem;
    border-radius: 10px;
    width: 90%;
    max-width: 400px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.close {
    float: right;
    font-size: 1.5rem;
    cursor: pointer;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
}

.form-group input {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #ddd;
    border-radius: 5px;
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .hero-content h1 {
        font-size: 2rem;
    }

    .hero-content p {
        font-size: 1rem;
    }
}


.instructor-photo:hover {
    transform: scale(1.05);
    transition: transform 0.3s ease;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}


.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.feature-card {
    background-color: white;
    border-radius: 10px;
    padding: 2rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

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

/* Instructor specific styling */
.instructor-photo {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--accent-color);
    margin-bottom: 1.5rem;
    order: -1; /* This moves the photo to the top */
}

.feature-card-content {
    display: flex;
    flex-direction: column;
    width: 100%;
}

.feature-card-content h3 {
    margin-bottom: 0.5rem;
    order: -1; /* This moves the name to the top (just below photo) */
}

.feature-card-content p:first-of-type {
    font-weight: bold;
    margin-bottom: 1rem;
}

.instructor-bio {
    font-style: italic;
    color: #555;
    margin-top: 1rem;
}

/* Seminars specific styling */
.feature-card i {
    font-size: 2.5rem;
    color: var(--accent-color);
    margin-bottom: 1rem;
    order: -2; /* Moves icon to very top */
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    order: -1; /* Moves title below icon */
}

.feature-card p:first-of-type {
    font-weight: normal;
    font-style: italic;
    margin-bottom: 0.5rem;
}

.feature-card p:nth-of-type(2) {
    margin-bottom: 1rem;
}
/* css code for adds content*/
/*.ad-section {*/
/*    background: #f8f9fa;*/
/*    padding: 2rem 0;*/
/*    margin: 2rem 0;*/
/*    border-top: 1px solid #e9ecef;*/
/*    border-bottom: 1px solid #e9ecef;*/
/*}*/

/* Google Ads Layout */
.main-content {
    display: grid;
    grid-template-columns: 1fr minmax(0, 1200px) 1fr;
    gap: 2rem;
    max-width: 100%;
    margin: 0 auto;
    padding: 0 1rem;
}

.content-center {
    grid-column: 2;
}

.ad-sidebar {
    grid-column: 1 / 2;
    position: sticky;
    top: 100px;
    height: fit-content;
}

.ad-sidebar-right {
    grid-column: 3 / 4;
    position: sticky;
    top: 100px;
    height: fit-content;
}

/* Ad Container Styles */
.ad-container {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 2rem;
    text-align: center;
    min-height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ad-label {
    font-size: 0.8rem;
    color: #6c757d;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

/* Responsive Ads */
@media (max-width: 1200px) {
    .main-content {
        grid-template-columns: 1fr;
    }

    .content-center {
        grid-column: 1;
    }

    .ad-sidebar,
    .ad-sidebar-right {
        display: none;
    }
}

/* Horizontal Ad Banner */
.ad-banner {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 1rem;
    margin: 2rem auto;
    text-align: center;
    min-height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: 1200px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .feature-card {
        padding: 1.5rem;
    }

    .instructor-photo {
        width: 120px;
        height: 120px;
    }
}
