/*==============================================================
  index.css - RozgarZone Homepage Styles (Excluding Navbar)
==============================================================*/

/* Custom Properties (Variables) */
:root {
    --primary-color: #aefeff;      /* Blue: Main theme color */
    --secondary-color: #28a745;    /* Green: Success/Action color */
    --accent-color: #ffc107;       /* Yellow: Highlight/Button color */
    --text-color-dark: #343a40;    /* Dark text */
    --text-color-light: #2c2121;   /* Light text */
    --bg-color-light: #f8f9fa;     /* Light background */
    --card-bg: #ffffff;            /* Card background */
    --shadow-md: 0 0.5rem 1rem rgba(0, 0, 0, 0.05); /* Soft shadow */
    --shadow-hover: 0 1rem 2rem rgba(0, 0, 0, 0.1);
}

/* Global Resets & Base Styles */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    line-height: 1.5;
    color: var(--text-color-dark);
    background-color: var(--bg-color-light);
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: all 0.3s ease;
}

a:hover {
    color: #0056b3;
    text-decoration: underline;
}

h1, h2, h3 {
    margin-top: 0;
    margin-bottom: 0.5rem;
    line-height: 1.2;
}

/*==============================================================
  Hero Section (header.hero)
==============================================================*/
.hero {
    /* Gradient background */
  background: linear-gradient(to right, #0a74da, #0b92e8);
    color: var(--text-color-light);
    padding: 80px 20px;
    text-align: center;
    margin-bottom: 40px;
    border-bottom-left-radius: 15px;
    border-bottom-right-radius: 15px;
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
}

.hero-icon {
    margin-bottom: 20px;
}

.hero h1 {
    font-size: 3rem;
    font-weight: 700;
}

.hero #p-hero {
    font-size: 1.4rem;
    font-weight: 300;
    margin-bottom: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    color: #ffffff;
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
}

/*==============================================================
  Buttons (General & Hero)
==============================================================*/
.btn {
    padding: 12px 30px;
    border-radius: 50px; /* Pill shape */
    font-weight: 600;
    text-transform: capitalize;
    transition: all 0.3s ease;
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    border: 2px solid transparent;
    display: inline-block;
}

.btn-primary {
    background-color: var(--accent-color);
    color: var(--text-color-dark);
    border-color: var(--accent-color);
}

.btn-primary:hover {
    background-color: #ffda6a;
    transform: translateY(-2px);
    box-shadow: 0 6px 10px rgba(0, 0, 0, 0.15);
}

.btn-secondary {
    background-color: transparent;
    color: var(--text-color-light);
    border-color: var(--text-color-light);
}

.btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

/* Button inside Cards */
.card .btn {
    background-color: var(--secondary-color);
    color: var(--text-color-light);
    padding: 8px 18px;
    font-size: 0.9rem;
    border-radius: 8px;
    border: none;
    margin-top: auto; /* Push button to the bottom in flex container */
    align-self: flex-start;
}

.card .btn:hover {
    background-color: #1e7e34;
    transform: scale(1.03);
}

/*==============================================================
  Main Grid & Cards
==============================================================*/
#main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px 40px;
}

.grid {
    display: grid;
    /* Responsive columns: 300px minimum width */
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.card {
    background-color: var(--card-bg);
    padding: 25px;
    border-radius: 10px;
    box-shadow: var(--shadow-md);
    border: 1px solid #e9ecef;
    transition: box-shadow 0.3s, transform 0.3s, border-color 0.3s;
    display: flex;
    flex-direction: column;
    min-height: 250px; 
}

.card:hover {
    border-color: var(--primary-color);
    box-shadow: var(--shadow-hover);
    transform: translateY(-8px); 
}

.card-icon {
    margin-bottom: 15px;
    align-self: flex-start;
}

.card-icon svg {
    display: block;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    border-radius: 4px;
}

.card h3 {
    font-size: 1.25rem;
    margin-bottom: 5px;
}

.card h3 a {
    color: var(--text-color-dark);
    font-weight: 600;
    text-decoration: none;
}

.card-sub {
    font-size: 0.8rem;
    color: #999;
    margin-bottom: 10px;
}

.card-text {
    margin-bottom: 20px;
    font-size: 0.95rem;
    color: #6c757d;
    flex-grow: 1; /* Allows card content to take up available space */
}

/* Inline feature icons inside the card */
.hero-icons svg {
    display: inline-block;
    vertical-align: middle;
}

/*==============================================================
  Footer & Utility Links
==============================================================*/
.extra-links {
    text-align: center;
    padding: 30px 20px;
    margin-top: 40px;
    border-top: 1px solid #e0e0e0;
}

.extra-links a {
    margin: 0 15px;
    font-size: 0.9rem;
    color: #fff5f5;
}

.extra-links a:hover {
    color: yellow
}



/*==============================================================
  Media Queries (Responsiveness)
==============================================================*/
@media (max-width: 992px) {
    .hero h1 {
        font-size: 2.5rem;
    }
    .hero #p-hero {
        font-size: 1.2rem;
    }
}

@media (max-width: 768px) {
    .hero {
        padding: 60px 15px;
        margin-bottom: 30px;
    }
    .hero h1 {
        font-size: 2rem;
        
    }
    .hero-buttons {
        flex-direction: column;
        align-items: stretch;
    }
    .btn {
        width: 100%;
    }
    .grid {
        gap: 20px;
    }
}
#logoLink{

    width: 200px;
}
.hero-intro {
  text-align: center;
  max-width: 700px;
  margin: 20px auto 50px;
  font-size: 1.05rem;
  line-height: 1.7;
  color: #333;
  padding: 0 15px;
}

.why-choose {
  text-align: center;
  background: linear-gradient(180deg, #f8fbff 0%, #eef9f7 100%);
  padding: 50px 20px;
  margin-bottom: 40px;
  border-radius: 20px;
}

.why-choose h2 {
  font-size: 1.8rem;
  color: #007bff;
  margin-bottom: 15px;
}

.why-choose p {
  max-width: 800px;
  margin: 0 auto;
  font-size: 1.05rem;
  line-height: 1.8;
  color: #444;
}
