/*
  File Name: css/custom.css
*/

/* =========================
   GLOBAL RESET / SAFETY
========================= */

body {
    font-family: Arial, sans-serif;
    overflow-x: hidden; /* prevents horizontal scroll */
}

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

/* =========================
   CARDS
========================= */

.card {
    border: none;
}

/* =========================
   MODERN NAVBAR
========================= */

.modern-navbar {
    padding: 12px 0;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid #f1f1f1;
}

/* Logo */
.logo-img {
    height: 48px;
    transition: transform 0.25s ease;
}

.logo-img:hover {
    transform: scale(1.08);
}

/* Nav links */
.navbar-nav .nav-link {
    font-size: 15px;
    font-weight: 500;
    color: #333 !important;
    margin: 0 10px;
    position: relative;
    transition: all 0.25s ease;
}

/* Hover underline animation */
.navbar-nav .nav-link::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -5px;
    width: 0%;
    height: 2px;
    background: #000;
    transition: width 0.25s ease;
}

.navbar-nav .nav-link:hover::after {
    width: 100%;
}

/* Active link */
.navbar-nav .nav-link.active {
    font-weight: 600;
}

/* Dropdown */
.dropdown-menu {
    border-radius: 10px;
    padding: 10px 0;
}

.dropdown-item {
    font-size: 14px;
    padding: 8px 18px;
    transition: background 0.2s ease;
}

.dropdown-item:hover {
    background: #f5f5f5;
}

/* CTA button */
.nav-cta {
    border-radius: 25px;
    font-size: 14px;
    transition: all 0.25s ease;
}

.nav-cta:hover {
    background: #000;
    color: #fff;
    transform: translateY(-1px);
}

/* =========================
   HERO SECTION (MODERN - Home Page)
========================= */

.hero-section {
    height: 90vh;
    background: var(--hero-bg) center center / cover no-repeat;
    position: relative;
    display: flex;
    align-items: center;
}

/* Overlay for readability */
.hero-section::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(0, 0, 0, 0.65),
        rgba(0, 123, 255, 0.35)
    );
    z-index: 1;
}

/* Content above overlay */
.hero-section .container {
    position: relative;
    z-index: 2;
}

/* Hero text styling */
.hero-section h1 {
    font-size: 3rem;
    font-weight: 700;
}

.hero-section p {
    font-size: 1.2rem;
    opacity: 0.9;
}

/* Button styling */
.hero-section .btn {
    padding: 10px 25px;
    font-weight: 600;
}

/* =========================
   HERO SECTION (INNER PAGE HERO)
========================= */

/* IMPORTANT: allow dynamic background override */
.page-hero {
    height: 300px;
    position: relative;
    display: flex;
    align-items: center;
    text-align: center;
}

/* Overlay */
.page-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        rgba(0,0,0,0.6),
        rgba(0,0,0,0.6)
    );
    z-index: 1;
}

/* Content */
.page-hero .container {
    position: relative;
    z-index: 2;
}

/* Typography */
.page-hero h1 {
    font-size: 2.5rem;
    font-weight: 700;
}

.page-hero p {
    font-size: 1.1rem;
    font-weight: 400;
    color: rgba(255,255,255,0.9);
    margin-top: 10px;
}

.page-hero h1,
.page-hero p {
    text-shadow: 0 2px 6px rgba(0,0,0,0.6);
}

/* =========================
   RESPONSIVE TWEAKS
========================= */

@media (max-width: 768px) {

    .hero-section {
        height: 70vh;
    }

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

    .page-hero {
        height: 220px;
    }

    .page-hero h1 {
        font-size: 1.8rem;
    }
}

/* =========================
   SECTION GENERAL
========================= */

section {
    overflow: hidden;
}

/* =========================
   ANIMATION (SUBTLE)
========================= */

.hero-section {
    animation: fadeInUp 1s ease;
}

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

/* =========================
   TOPBAR (SOCIAL ICONS)
========================= */

.topbar-link {
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    font-size: 13px;
    transition: all 0.3s ease;
}

.topbar-link i {
    font-size: 14px;
}

/* Hover effects */
.topbar-link:hover {
    color: #0d6efd; /* Bootstrap primary */
    opacity: 0.9;
}

/* Optional spacing polish */
.bg-dark .container a {
    letter-spacing: 0.3px;
}

/* =========================
   FOOTER
========================= */

.footer-text {
    color: #adb5bd;
}

.footer-link {
    color: #adb5bd;
    text-decoration: none;
    display: inline-block;
    margin-bottom: 6px;
    transition: all 0.3s ease;
}

.footer-link:hover {
    color: #ffffff;
    transform: translateX(3px);
}

/* Headings */
footer h5 {
    color: #ffffff;
}

/* Better readability (optional upgrade) */
footer p {
    line-height: 1.6;
}

/* Map styling */
.footer-map {
    max-width: 160px;   /* control size */
    height: auto;
    opacity: 0.9;
    border-radius: 8px;
    transition: 0.3s ease;
}

.footer-map:hover {
    opacity: 1;
    transform: scale(1.03);
}
/* =========================
   p tag Better readability (paragraph)     
========================= */

p {
font-size: 16px;
line-height: 1.75;
color: #3a3a3a;
margin-bottom: 20px;
}
/* =========================
   Blog CARDS (MODERN UI - PREMIUM)
========================= */

.category-card {
    position: relative;
    display: block;
    border-radius: 14px;
    overflow: hidden;

    height: 100%;
    min-height: 220px;

    text-decoration: none;
    color: #fff;

    transition: transform 0.3s ease, box-shadow 0.3s ease;
    will-change: transform;

    border: 1px solid rgba(255,255,255,0.05);
}

/* Image container */
.category-card .card-img {
    width: 100%;
    height: 100%;
    position: absolute;   /* ✅ KEY FIX */
    top: 0;
    left: 0;
}

/* Image */
.category-card .card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;

    transition: transform 0.4s ease;
    will-change: transform;
}

/* Overlay */
.category-card .card-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 16px;

    background: linear-gradient(
        to top,
        rgba(0,0,0,0.85),
        rgba(0,0,0,0.3),
        transparent
    );

    transition: background 0.3s ease;
}

/* Title */
.category-card h6 {
    font-weight: 600;
    font-size: 15px;
    margin-bottom: 4px;
    color: #fff;

    line-height: 1.3;

    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Description */
.category-card p {
    font-size: 12px;
    opacity: 0.9;
    margin: 0;
    color: #ddd;

    line-height: 1.3;

    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Hover effects */
.category-card:hover {
    transform: translateY(-6px);
    box-shadow: 
        0 12px 30px rgba(0,0,0,0.25),
        0 0 20px rgba(0, 123, 255, 0.2);
}

/* Image zoom */
.category-card:hover img {
    transform: scale(1.08);
}

/* Overlay enhancement */
.category-card:hover .card-overlay {
    background: linear-gradient(
        to top,
        rgba(0,0,0,0.9),
        rgba(0,0,0,0.5),
        transparent
    );
}