/* ==========================================
   GLOBAL SETTINGS
   ========================================== */
*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    background: #f8f9fb;
    color: #333;
    overflow-x: hidden;
}

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

/* ==========================================
   NAVIGATION BAR
   ========================================== */
.navbar {
    background: #fff;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 999;
    border-bottom: 2px solid #b88e2f; 
}

.navbar-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 40px;
}

.logo {
    font-size: 24px;
    font-weight: 700;
    letter-spacing: 1px;
    color: #b88e2f;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 18px;
}

.logout-btn {
    text-decoration: none;
    background: #b88e2f;
    color: #fff;
    padding: 10px 18px;
    border-radius: 30px;
    font-size: 14px;
    font-weight: 500;
    transition: 0.3s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 100px;
}

.logout-btn:hover {
    background: #000;
    transform: translateY(-2px);
}

.hamburger {
    display: none;
    font-size: 26px;
    cursor: pointer;
}

/* DESKTOP MENU MENU */
.menu-container {
    display: flex;
    justify-content: center;
    padding-bottom: 15px;
}

.menu {
    list-style: none;
    display: flex;
    gap: 40px;
}

.menu li {
    position: static; /* Important for full-width mega menu */
}

.menu a {
    text-decoration: none;
    color: #333;
    font-size: 15px;
    font-weight: 500;
    transition: 0.3s;
}

.menu a:hover {
    color: #b88e2f;
}

.menu-item > a {
    position: relative;
    padding: 5px 0;
}

.menu-item:hover > a {
    color: #b88e2f;
}

/* MEGA MENU CONFIG */
.mega-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0; 
    width: 100%; 
    max-width: 1200px;
    margin: auto;
    background: #fff;
    display: flex;
    justify-content: center; 
    gap: 40px;
    padding: 40px 60px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.08);
    border-top: 3px solid #b88e2f;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    flex-wrap: wrap;
    z-index: 1000;
}

.menu-item:hover .mega-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.mega-column {
    min-width: 180px;
}

.mega-column h4 {
    font-size: 14px;
    margin-bottom: 15px;
    color: #b88e2f;
    font-weight: 600;
}

.mega-column a {
    display: block;
    font-size: 14px;
    margin-bottom: 8px;
    color: #555;
    transition: 0.3s;
}

.mega-column a:hover {
    color: #000;
    transform: translateX(5px);
}

/* ==========================================
   HERO & BODY STRUCTURE
   ========================================== */
.hero {
    height: 350px;
    background: linear-gradient(to right, rgba(0,0,0,0.6), rgba(0,0,0,0.4)),
                url('https://images.unsplash.com/photo-1618220179428-22790b461013?auto=format&fit=crop&w=1500&q=80') center/cover;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    text-align: center;
    animation: zoomEffect 20s ease-in-out infinite; 
}

.hero h1 {
    font-size: 40px;
    font-weight: 600;
    margin-bottom: 10px;
}

.hero p {
    font-size: 16px;
    opacity: 0.9;
}

@keyframes zoomEffect {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.section-title {
    text-align: center;
    margin-bottom: 40px;
    font-size: 28px;
    font-weight: 600;
}

/* GRID LAYOUT SETUP */
.grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 25px;
}

.card {
    background: #fff;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.06);
    transition: 0.4s;
    display: flex;
    flex-direction: column;
    height: 100%;                
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.12);
}

.card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.card-content {
    padding: 18px;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    flex-grow: 1;                 
}

.card h4 {
    font-weight: 500;
    font-size: 15px;
    margin-bottom: 15px;
    display: -webkit-box;
    -webkit-line-clamp: 2;       
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 40px;            
}

.btn {
    padding: 9px 18px;
    border: none;
    border-radius: 30px;
    background: #b88e2f;
    color: #fff;
    cursor: pointer;
    transition: 0.3s;
    font-size: 14px;
}

.btn:hover {
    background: #000;
}

/* ==========================================
   ABOUT US SECTION
   ========================================== */
.about-section {
    background: #fff;
    padding: 80px 0;
}

.about-container {
    width: 90%;
    max-width: 1200px;
    margin: auto;
    display: flex;
    align-items: center;
    gap: 60px;
}

.about-image {
    flex: 1;
}

.about-image img {
    width: 100%;
    border-radius: 15px;
    box-shadow: 0 10px 35px rgba(0,0,0,0.1);
}

.about-content {
    flex: 1;
}

.about-content h2 {
    font-size: 30px;
    margin-bottom: 20px;
    color: #333;
}

.about-content p {
    font-size: 15px;
    line-height: 1.7;
    margin-bottom: 15px;
    color: #555;
}

.about-content .btn {
    margin-top: 10px;
}

/* ==========================================
   FOOTER SECTION
   ========================================== */
.footer {
    background: #111;
    color: #ddd;
    padding-top: 60px;
    margin-top: 80px;
}

.footer-container {
    width: 90%;
    max-width: 1200px;
    margin: auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 40px;
    padding-bottom: 40px;
}

.footer-column h3 {
    color: #b88e2f;
    margin-bottom: 15px;
}

.footer-column h4 {
    margin-bottom: 15px;
    color: #fff;
}

.footer-column p {
    font-size: 14px;
    line-height: 1.6;
    color: #bbb;
}

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

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

.footer-column ul li a {
    text-decoration: none;
    color: #bbb;
    font-size: 14px;
    transition: 0.3s;
}

.footer-column ul li a:hover {
    color: #b88e2f;
    padding-left: 5px;
}

.newsletter {
    display: flex;
    margin-top: 10px;
}

.newsletter input {
    flex: 1;
    padding: 10px;
    border: none;
    outline: none;
    border-radius: 4px 0 0 4px;
}

.newsletter button {
    padding: 10px 15px;
    border: none;
    background: #b88e2f;
    color: #fff;
    cursor: pointer;
    border-radius: 0 4px 4px 0;
    transition: 0.3s;
}

.newsletter button:hover {
    background: #000;
}

.footer-bottom {
    text-align: center;
    padding: 20px;
    border-top: 1px solid #222;
    font-size: 14px;
    color: #aaa;
}

/* ==========================================
   RESPONSIVE MEDIA QUERIES (1200px down)
   ========================================== */
@media (max-width: 1200px) {
    .grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* TABLET LAYOUT RESPONSIVITY (992px down) */
@media (max-width: 992px) {
    .grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .nav-right {
        gap: 12px;
    }

    .logout-btn {
        padding: 8px 14px;
        font-size: 13px;
        min-width: auto;
    }

    .hamburger {
        display: block;
    }

    .menu-container {
        display: none;
        width: 100%;
    }

    .menu-container.active {
        display: block;
    }

    .menu {
        flex-direction: column;
        gap: 0;
        background: #fff;
    }

    .menu li {
        border-top: 1px solid #eee;
        width: 100%;
    }

    .menu li a {
        display: block;
        padding: 14px 20px;  
    }

    .menu-item.active > a {
        color: #b88e2f;
    }

    .mega-menu {
        position: relative;
        width: 100%;
        padding: 20px;
        display: none;
        box-shadow: none;
        border: none;
    }

    .menu-item.active .mega-menu {
        display: block;
        flex-direction: column;
        gap: 20px;
    }

    .hero {
        height: 250px;
    }

    .hero h1 {
        font-size: 26px;
    }

    .about-container {
        flex-direction: column;
        gap: 30px;
        text-align: center;
    }

    .about-image, .about-content {
        width: 100%;
    }

    .about-image img {
        height: 260px;
        object-fit: cover;
    }

    .about-content h2 {
        font-size: 24px;
    }

    .about-content p {
        font-size: 14px;
    }
}

/* SMARTPHONE RESPONSIVITY (768px down) */
@media (max-width: 768px) {
    .grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer {
        text-align: center;
    }

    .newsletter {
        flex-direction: column;
    }

    .newsletter input {
        border-radius: 4px;
        margin-bottom: 10px;
    }

    .newsletter button {
        border-radius: 4px;
    }
}

/* SMALL MOBILE PHONES (500px down) */
@media (max-width: 500px) {
    .grid {
        grid-template-columns: repeat(1, 1fr);
    }

    .navbar-top {
        padding: 15px 20px;
    }

    .logo {
        font-size: 18px;
    }

    .logout-btn {
        padding: 7px 12px;
        font-size: 12px;
    }

    .hamburger {
        font-size: 22px;
    }
}