/* 
 * MPSC Alumni Website Styles
 * Main stylesheet for Mohammadpur Preparatory School & College Alumni Website
 */

/* ===== BASE STYLES ===== */
:root {
    /* Main brand colors */
    --primary-color: #1a4b84;       /* Deep blue - primary brand color */
    --secondary-color: #e63946;     /* Red accent - for CTAs and highlights */
    --accent-color: #f8c145;        /* Gold accent - for subtle highlights */
    
    /* Text colors */
    --text-dark: #1f1f1f;           /* Near-black for main text */
    --text-medium: #555555;         /* Medium gray for secondary text */
    --text-light: #f8f9fa;          /* Off-white for text on dark backgrounds */
    
    /* Background colors */
    --bg-light: #ffffff;            /* White background */
    --bg-off-white: #f8f9fa;        /* Off-white background for sections */
    --bg-gray: #f0f2f5;             /* Light gray background */
    --bg-dark: #212529;             /* Dark background */
    
    /* UI element colors */
    --border-color: #e1e4e8;        /* Light gray for borders */
    --success-color: #28a745;       /* Green for success messages */
    --warning-color: #ffc107;       /* Amber for warnings */
    --error-color: #dc3545;         /* Red for errors */
    
    /* Typography */
    --font-primary: 'Poppins', sans-serif;   /* For headings and important text */
    --font-secondary: 'Roboto', sans-serif;  /* For body text and general content */
    
    /* Sizes and spacing */
    --section-spacing: 5rem;
    --container-width: 1200px;
    --border-radius-sm: 4px;
    --border-radius-md: 8px;
    --border-radius-lg: 12px;
    
    /* Transitions */
    --transition-speed: 0.3s;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-secondary);
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
    background-color: var(--bg-light);
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-primary);
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 1rem;
    /* color: var(--text-dark); */
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
}

h3 {
    font-size: 1.5rem;
}

h4 {
    font-size: 1.25rem;
}

p {
    margin-bottom: 1rem;
    /* color: var(--text-medium); */
}

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

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

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

ul, ol {
    list-style: none;
    padding: 0;
    margin: 0;
}

.container {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 1.5rem;
}

section {
    padding: var(--section-spacing) 0;
}

/* ===== BUTTONS ===== */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    font-family: var(--font-primary);
    font-weight: 500;
    font-size: 1rem;
    text-align: center;
    border-radius: var(--border-radius-md);
    transition: all var(--transition-speed);
    cursor: pointer;
    border: none;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--text-light);
}

.btn-primary:hover {
    background-color: #0f3a6d;
    color: var(--text-light);
}

.btn-secondary {
    background-color: var(--secondary-color);
    color: var(--text-light);
}

.btn-secondary:hover {
    background-color: #cc2c39;
    color: var(--text-light);
}

.btn-outline {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

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

/* ===== TOP BAR ===== */
.top-bar {
    background-color: var(--primary-color);
    padding: 0.5rem 0;
    font-size: 0.875rem;
    color: var(--text-light);
}

.top-bar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.contact-info {
    display: flex;
    gap: 1.5rem;
}

.contact-info a {
    color: var(--text-light);
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.social-links {
    display: flex;
    gap: 0.75rem;
}

.social-links a {
    color: var(--text-light);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    transition: background-color var(--transition-speed);
}

.social-links a:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

/* ===== HEADER ===== */
.main-header {
    background-color: var(--bg-light);
    padding: 1rem 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 100;
}

.main-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    height: 60px;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.header-actions {
    display: flex;
    gap: 1rem;
}

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    background: none;
    border: none;
    cursor: pointer;
}

.menu-toggle span {
    display: block;
    width: 30px;
    height: 3px;
    background-color: var(--primary-color);
    transition: all var(--transition-speed);
}

/* ===== NAVIGATION ===== */
.main-nav {
    background-color: var(--bg-light);
    border-top: 1px solid var(--border-color);
}

.nav-menu {
    display: flex;
    justify-content: center;
}

.nav-menu > li {
    position: relative;
}

.nav-menu > li > a {
    display: block;
    padding: 1rem 1.25rem;
    font-family: var(--font-primary);
    font-weight: 500;
    color: var(--text-dark);
    position: relative;
}

.nav-menu > li.active > a {
    color: var(--primary-color);
}

.nav-menu > li.active > a::after,
.nav-menu > li > a:hover::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: var(--primary-color);
}

.has-dropdown > a::before {
    content: '▼';
    font-size: 0.6rem;
    margin-left: 0.3rem;
    vertical-align: middle;
    transition: transform var(--transition-speed);
}

.has-dropdown:hover > a::before {
    transform: rotate(180deg);
}

.dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    width: 220px;
    background-color: var(--bg-light);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
    border-radius: var(--border-radius-sm);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all var(--transition-speed);
    z-index: 100;
    padding: 0.5rem 0;
}

.has-dropdown:hover .dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown li a {
    display: block;
    padding: 0.75rem 1.5rem;
    color: var(--text-medium);
    font-weight: 400;
    transition: all var(--transition-speed);
}

.dropdown li a:hover {
    background-color: var(--bg-gray);
    color: var(--primary-color);
    padding-left: 1.75rem;
}

/* ===== HERO SECTION ===== */
.hero-section {
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('https://eduplus-bd.com/image.php');
    background-size: cover;
    background-position: center;
    height: 75vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--text-light);
    padding: 2rem;
}

.hero-content {
    max-width: 800px;
}

.hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    color: var(--text-light);
}

.hero-content h2 {
    font-size: 1.75rem;
    margin-bottom: 1.5rem;
    color: var(--accent-color);
}

.hero-content p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    color: var(--text-light);
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

/* ===== FEATURES SECTION ===== */
.features-section {
    background-color: var(--bg-light);
    padding: 4rem 0;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

.feature-card {
    background-color: var(--bg-light);
    border-radius: var(--border-radius-md);
    padding: 2rem;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform var(--transition-speed);
}

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

.feature-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background-color: rgba(26, 75, 132, 0.1);
    border-radius: 50%;
}

.feature-icon i {
    font-size: 2rem;
    color: var(--primary-color);
}

.feature-card h3 {
    margin-bottom: 1rem;
    color: var(--primary-color);
}

/* ===== SECTION HEADERS ===== */
.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
}

.section-header h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background-color: var(--primary-color);
}

.section-header p {
    max-width: 700px;
    margin: 0 auto;
    font-size: 1.1rem;
}

/* ===== ALUMNI HIGHLIGHT SECTION ===== */
.alumni-highlight {
    background-color: var(--bg-off-white);
    padding: 5rem 0;
}

.alumni-slider {
    display: flex;
    gap: 2rem;
    overflow: hidden;
    margin-bottom: 2rem;
}

.alumni-card {
    flex: 1;
    min-width: 300px;
    background-color: var(--bg-light);
    border-radius: var(--border-radius-md);
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.alumni-image {
    height: 250px;
    overflow: hidden;
}

.alumni-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-speed);
}

.alumni-card:hover .alumni-image img {
    transform: scale(1.05);
}

.alumni-info {
    padding: 1.5rem;
}

.alumni-info h3 {
    margin-bottom: 0.5rem;
}

.alumni-batch {
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.alumni-position {
    color: var(--text-medium);
    margin-bottom: 1rem;
}

.alumni-quote {
    font-style: italic;
    position: relative;
    padding-left: 1.5rem;
}

.alumni-quote::before {
    content: '"';
    position: absolute;
    left: 0;
    top: 0;
    font-size: 2rem;
    color: var(--primary-color);
    opacity: 0.4;
    line-height: 1;
}

.slider-controls {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.slider-controls button {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--bg-light);
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
    cursor: pointer;
    transition: all var(--transition-speed);
}

.slider-controls button:hover {
    background-color: var(--primary-color);
    color: var(--text-light);
}

/* ===== UPCOMING EVENTS SECTION ===== */
.upcoming-events {
    background-color: var(--bg-light);
    padding: 5rem 0;
}

.events-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.event-card {
    background-color: var(--bg-light);
    border-radius: var(--border-radius-md);
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    display: flex;
    transition: transform var(--transition-speed);
}

.event-card:hover {
    transform: translateY(-5px);
}

.event-date {
    min-width: 80px;
    padding: 1rem;
    background-color: var(--primary-color);
    color: var(--text-light);
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.event-date .day {
    font-size: 1.75rem;
    font-weight: 700;
    line-height: 1;
}

.event-date .month {
    text-transform: uppercase;
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

.event-details {
    padding: 1.5rem;
}

.event-details h3 {
    margin-bottom: 0.75rem;
    color: var(--primary-color);
}

.event-location, .event-time {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    color: var(--text-medium);
    font-size: 0.9rem;
}

.event-location i, .event-time i {
    color: var(--primary-color);
}

.event-description {
    margin: 0.75rem 0 1.25rem;
}

.view-all-link {
    text-align: center;
}

.view-all-link a {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    transition: all var(--transition-speed);
}

.view-all-link a i {
    transition: transform var(--transition-speed);
}

.view-all-link a:hover i {
    transform: translateX(5px);
}

/* ===== NEWS SECTION ===== */
.news-section {
    background-color: var(--bg-off-white);
    padding: 5rem 0;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.news-card {
    background-color: var(--bg-light);
    border-radius: var(--border-radius-md);
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform var(--transition-speed);
}

.news-card:hover {
    transform: translateY(-5px);
}

.news-image {
    height: 200px;
    overflow: hidden;
}

.news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-speed);
}

.news-card:hover .news-image img {
    transform: scale(1.05);
}

.news-content {
    padding: 1.5rem;
}

.news-date {
    display: block;
    color: var(--text-medium);
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
}

.news-content h3 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
    line-height: 1.4;
}

.read-more {
    display: inline-block;
    margin-top: 0.75rem;
    color: var(--primary-color);
    font-weight: 600;
    transition: color var(--transition-speed);
}

.read-more:hover {
    color: var(--secondary-color);
}

/* ===== CTA SECTION ===== */
.cta-section {
    background: linear-gradient(rgba(26, 75, 132, 0.9), rgba(26, 75, 132, 0.9)), url('https://eduplus-bd.com/image.php');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    padding: 5rem 0;
    text-align: center;
    color: var(--text-light);
}

.cta-content {
    max-width: 800px;
    margin: 0 auto;
}

.cta-content h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--text-light);
}

.cta-content p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    color: rgba(255, 255, 255, 0.9);
}

.cta-content .btn-outline {
    color: var(--text-light);
    border-color: var(--text-light);
}

.cta-content .btn-outline:hover {
    background-color: var(--text-light);
    color: var(--primary-color);
}

/* ===== NUMBERS SECTION ===== */
.numbers-section {
    background-color: var(--bg-light);
    padding: 4rem 0;
}

.number-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    text-align: center;
}

.number-item {
    padding: 1rem;
}

.number {
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    position: relative;
}

.number::after {
    content: '+';
    font-size: 2rem;
    position: absolute;
    top: 0;
}

.number-label {
    color: var(--text-medium);
    font-size: 1.1rem;
    font-weight: 500;
}

/* ===== FOOTER ===== */
.main-footer {
    background-color: var(--bg-dark);
    color: var(--text-light);
}

.footer-top {
    padding: 4rem 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.5fr;
    gap: 2rem;
}

.footer-about p {
    color: rgba(255, 255, 255, 0.7);
    margin: 1.5rem 0;
}

.footer-logo {
    height: 60px;
}

.footer-social {
    display: flex;
    gap: 1rem;
}

.footer-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--text-light);
    transition: all var(--transition-speed);
}

.footer-social a:hover {
    background-color: var(--primary-color);
    transform: translateY(-3px);
}

.footer-links h3, .footer-contact h3 {
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
    color: var(--text-light);
    position: relative;
    padding-bottom: 0.75rem;
}

.footer-links h3::after, .footer-contact h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 2px;
    background-color: var(--primary-color);
}

.footer-links ul li {
    margin-bottom: 0.75rem;
}

.footer-links ul li a {
    color: rgba(255, 255, 255, 0.7);
    transition: all var(--transition-speed);
}

.footer-links ul li a:hover {
    color: var(--text-light);
    padding-left: 5px;
}

.footer-contact p {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1rem;
    color: rgba(255, 255, 255, 0.7);
}

.footer-contact p i {
    color: var(--primary-color);
    font-size: 1.1rem;
    margin-top: 3px;
}

.newsletter h4 {
    font-size: 1.1rem;
    margin: 1.5rem 0 1rem;
    color: var(--text-light);
}

.newsletter-form {
    display: flex;
}

.newsletter-form input {
    flex: 1;
    padding: 0.75rem 1rem;
    border: none;
    border-radius: var(--border-radius-sm) 0 0 var(--border-radius-sm);
    font-family: var(--font-secondary);
}

.newsletter-form button {
    background-color: var(--primary-color);
    color: var(--text-light);
    border: none;
    padding: 0 1rem;
    border-radius: 0 var(--border-radius-sm) var(--border-radius-sm) 0;
    cursor: pointer;
    transition: background-color var(--transition-speed);
}

.newsletter-form button:hover {
    background-color: #0f3a6d;
}

.footer-bottom {
    background-color: rgba(0, 0, 0, 0.2);
    padding: 1.5rem 0;
    text-align: center;
}

.footer-bottom .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.7);
    margin: 0;
}

.footer-bottom .fa-heart {
    color: var(--secondary-color);
}

/* ===== BACK TO TOP BUTTON ===== */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background-color: var(--primary-color);
    color: var(--text-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-speed);
    z-index: 99;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background-color: #0f3a6d;
    transform: translateY(-5px);
}