/* ===================================
   St. Xavier's College - Modern CSS
   Mobile-First Responsive Design
   =================================== */

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #003366;
    --secondary-color: #FFD700;
    --accent-color: #0066CC;
    --text-dark: #333333;
    --text-light: #666666;
    --bg-light: #F8F9FA;
    --bg-white: #FFFFFF;
    --gradient-primary: linear-gradient(135deg, #003366 0%, #0066CC 100%);
    --gradient-secondary: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.15);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.2);
    --transition: all 0.3s ease;
}

body {
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    overflow-x: hidden;
}

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

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

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

/* ===================================
   Top Bar
   =================================== */
.top-bar {
    background: var(--primary-color);
    color: white;
    padding: 8px 0;
    font-size: 13px;
}

.top-bar-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.social-links {
    display: flex;
    gap: 12px;
}

.social-links a {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    overflow: hidden;
    transition: var(--transition);
    background: white;
    padding: 4px;
}

.social-links a:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(255, 255, 255, 0.3);
}

.social-links img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.pgdm-admission {
    flex: 1;
    text-align: center;
}

.pgdm-admission a {
    color: var(--secondary-color);
    font-weight: 500;
    text-decoration: underline;
}

.pgdm-admission a:hover {
    color: white;
}

.secondary-links {
    display: flex;
    list-style: none;
    gap: 20px;
}

.secondary-links a {
    color: white;
    font-weight: 400;
    transition: var(--transition);
}

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

/* ===================================
   Header & Navigation
   =================================== */
header {
    background: white;
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    height: 60px;
    width: auto;
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.mobile-menu-toggle span {
    width: 28px;
    height: 3px;
    background: var(--primary-color);
    border-radius: 3px;
    transition: var(--transition);
}

.main-nav ul {
    display: flex;
    list-style: none;
    gap: 5px;
}

.main-nav > ul > li {
    position: relative;
}

.main-nav a,
.dropdown-toggle {
    display: block;
    padding: 12px 18px;
    color: var(--text-dark);
    font-weight: 500;
    font-size: 15px;
    cursor: pointer;
    transition: var(--transition);
}

.main-nav > ul > li > a:hover,
.main-nav > ul > li > .dropdown-toggle:hover {
    color: var(--accent-color);
    background: var(--bg-light);
    border-radius: 6px;
}

/* Dropdown Menus */
.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    min-width: 280px;
    box-shadow: var(--shadow-md);
    border-radius: 8px;
    padding: 12px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: var(--transition);
    z-index: 100;
}

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

.dropdown-menu li {
    list-style: none;
}

.dropdown-menu a {
    padding: 12px 24px;
    display: block;
    font-size: 14px;
    color: var(--text-dark);
}

.dropdown-menu a:hover {
    background: var(--bg-light);
    color: var(--accent-color);
    padding-left: 30px;
}

.dropdown-heading {
    padding: 12px 24px;
    font-weight: 600;
    color: var(--accent-color);
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 8px;
}

.dropdown-heading:first-child {
    margin-top: 0;
}

/* ===================================
   Hero Section
   =================================== */
.hero-section {
    position: relative;
    margin-bottom: 60px;
}

.hero-image {
    position: relative;
    width: 100%;
    height: 500px;
    overflow: hidden;
}

.hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(0, 51, 102, 0.85), rgba(0, 102, 204, 0.75));
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 20px;
}

.hero-overlay h1 {
    color: white;
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 15px;
    animation: fadeInUp 0.8s ease;
}

.hero-overlay p {
    color: white;
    font-size: 22px;
    font-weight: 300;
    animation: fadeInUp 0.8s ease 0.2s backwards;
}

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

/* ===================================
   Welcome Section
   =================================== */
.welcome-section {
    padding: 80px 20px;
    background: var(--bg-white);
}

.welcome-section h2 {
    font-size: 36px;
    color: var(--primary-color);
    margin-bottom: 30px;
    text-align: center;
    font-weight: 700;
}

.welcome-section p {
    font-size: 16px;
    line-height: 1.8;
    color: var(--text-light);
    margin-bottom: 20px;
    text-align: justify;
}

.btn-know-more {
    display: inline-block;
    margin: 30px auto 0;
    padding: 14px 40px;
    background: var(--gradient-primary);
    color: white;
    font-weight: 600;
    border-radius: 50px;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    text-align: center;
}

.btn-know-more:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.welcome-section .container {
    text-align: center;
}

/* ===================================
   Reasons Section
   =================================== */
.reasons-section {
    padding: 80px 20px;
    background: var(--gradient-secondary);
}

.reasons-header h2 {
    font-size: 36px;
    color: var(--primary-color);
    margin-bottom: 20px;
    text-align: center;
    font-weight: 700;
}

.reasons-header p {
    font-size: 16px;
    color: var(--text-dark);
    text-align: center;
    margin-bottom: 50px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.reasons-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.reason-card {
    background: white;
    padding: 40px 30px;
    border-radius: 12px;
    box-shadow: var(--shadow-md);
    text-align: center;
    transition: var(--transition);
}

.reason-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.reason-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 25px;
}

.reason-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.reason-card h3 {
    font-size: 22px;
    color: var(--primary-color);
    margin-bottom: 15px;
    font-weight: 600;
}

.reason-card p {
    font-size: 15px;
    color: var(--text-light);
    line-height: 1.7;
}

/* ===================================
   Programs Section
   =================================== */
.programs-section {
    padding: 80px 20px;
    background: var(--bg-white);
}

.programs-section h2 {
    font-size: 36px;
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 15px;
    font-weight: 700;
}

.section-description {
    text-align: center;
    color: var(--text-light);
    font-size: 16px;
    margin-bottom: 40px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.tabs {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 50px;
    flex-wrap: wrap;
}

.tab-button {
    padding: 12px 30px;
    background: white;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    font-size: 15px;
}

.tab-button:hover,
.tab-button.active {
    background: var(--primary-color);
    color: white;
}

.programs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
}

.program-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}

.program-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.program-image {
    height: 220px;
    overflow: hidden;
}

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

.program-card:hover .program-image img {
    transform: scale(1.1);
}

.program-content {
    padding: 25px;
    text-align: center;
}

.program-content h3 {
    font-size: 20px;
    color: var(--primary-color);
    margin-bottom: 20px;
    font-weight: 600;
}

.apply-btn {
    padding: 10px 30px;
    background: var(--gradient-primary);
    color: white;
    border: none;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    font-size: 14px;
}

.apply-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* ===================================
   International Tours Section
   =================================== */
.tours-section {
    padding: 80px 20px;
    background: var(--gradient-secondary);
}

.tours-section h2 {
    font-size: 36px;
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 15px;
    font-weight: 700;
}

.tours-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin-top: 50px;
}

.tour-card {
    position: relative;
    height: 300px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}

.tour-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.tour-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.tour-card:hover img {
    transform: scale(1.1);
}

.tour-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    padding: 25px;
}

.tour-overlay h3 {
    color: white;
    font-size: 24px;
    font-weight: 600;
}

/* ===================================
   Blogs Section
   =================================== */
.blogs-section {
    padding: 80px 20px;
    background: #E8F4F8;
}

.blogs-section h2 {
    font-size: 36px;
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 50px;
    font-weight: 700;
}

.blogs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 30px;
}

.blog-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.blog-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

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

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

.blog-card:hover .blog-image img {
    transform: scale(1.1);
}

.blog-content {
    padding: 20px;
}

.blog-tagline {
    font-size: 15px;
    color: var(--text-dark);
    margin-bottom: 15px;
    font-weight: 500;
    min-height: 45px;
}

.read-more {
    padding: 8px 20px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 50px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    font-size: 13px;
}

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

/* ===================================
   Recruiters Section
   =================================== */
.recruiters-section {
    padding: 80px 20px;
    background: var(--bg-white);
}

.recruiters-section h2 {
    font-size: 36px;
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 50px;
    font-weight: 700;
}

.recruiters-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 30px;
    align-items: center;
}

.recruiter-logo {
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: var(--shadow-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100px;
    transition: var(--transition);
}

.recruiter-logo:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.recruiter-logo img {
    max-width: 100%;
    max-height: 60px;
    object-fit: contain;
}

/* ===================================
   Reviews Section
   =================================== */
.reviews-section {
    padding: 80px 20px;
    background: var(--bg-light);
}

.section-subtitle {
    text-align: center;
    color: var(--accent-color);
    font-size: 16px;
    font-weight: 500;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.reviews-section h2 {
    font-size: 36px;
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 50px;
    font-weight: 700;
}

.carousel-container {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
    padding: 0 60px;
}

.review-wrapper {
    overflow: hidden;
}

.review-card {
    background: white;
    padding: 40px;
    border-radius: 12px;
    box-shadow: var(--shadow-md);
    display: none;
}

.review-card.active {
    display: block;
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.review-text {
    font-size: 16px;
    line-height: 1.8;
    color: var(--text-light);
    margin-bottom: 30px;
    font-style: italic;
}

.review-author {
    display: flex;
    align-items: center;
    gap: 20px;
}

.review-author img {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--secondary-color);
}

.author-name {
    font-weight: 600;
    color: var(--primary-color);
    font-size: 16px;
}

.carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: var(--primary-color);
    color: white;
    border: none;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 20px;
    transition: var(--transition);
    z-index: 10;
}

.carousel-arrow:hover {
    background: var(--accent-color);
    transform: translateY(-50%) scale(1.1);
}

.carousel-arrow.left {
    left: 0;
}

.carousel-arrow.right {
    right: 0;
}

.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 30px;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #ccc;
    cursor: pointer;
    transition: var(--transition);
}

.dot.active,
.dot:hover {
    background: var(--primary-color);
}

/* ===================================
   Study in Bangalore Section
   =================================== */
.study-bangalore-section {
    background: linear-gradient(rgba(130, 130, 130, 0.7), rgba(130, 130, 130, 0.7)),
                url('assets/images/bangalore-bg.jpg') center/cover;
    padding: 100px 20px;
    text-align: center;
}

.study-bangalore-section h2 {
    font-size: 40px;
    color: white;
    margin-bottom: 20px;
    font-weight: 700;
}

.study-bangalore-section p {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.8;
    max-width: 800px;
    margin: 0 auto;
}

/* ===================================
   Footer
   =================================== */
footer {
    background: var(--primary-color);
    color: white;
    padding: 60px 20px 20px;
}

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

.footer-section h4 {
    font-size: 18px;
    margin-bottom: 20px;
    font-weight: 600;
    color: var(--secondary-color);
}

.logo-section img {
    height: 60px;
    margin-bottom: 15px;
}

.logo-section p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
}

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

.footer-section ul li {
    margin-bottom: 12px;
}

.footer-section a {
    color: rgba(255, 255, 255, 0.8);
    transition: var(--transition);
    font-size: 14px;
}

.footer-section a:hover {
    color: var(--secondary-color);
    padding-left: 5px;
}

.contact-section p {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 12px;
    font-size: 14px;
    line-height: 1.6;
}

.footer-social {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.footer-social a {
    width: 35px;
    height: 35px;
    background: white;
    border-radius: 50%;
    padding: 6px;
    transition: var(--transition);
}

.footer-social a:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(255, 215, 0, 0.4);
}

.footer-social img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
}

/* ===================================
   RESPONSIVE DESIGN
   Mobile First Approach
   =================================== */

/* Tablets (768px and below) */
@media (max-width: 768px) {
    .top-bar-content {
        flex-direction: column;
        text-align: center;
    }
    
    .secondary-links {
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    .main-nav {
        position: fixed;
        top: 95px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 95px);
        background: white;
        transition: var(--transition);
        overflow-y: auto;
        z-index: 999;
    }
    
    .main-nav.active {
        left: 0;
    }
    
    .main-nav ul {
        flex-direction: column;
        padding: 20px;
    }
    
    .main-nav > ul > li {
        width: 100%;
    }
    
    .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        padding: 0 0 0 20px;
        display: none;
    }
    
    .dropdown.active .dropdown-menu {
        display: block;
    }
    
    .hero-overlay h1 {
        font-size: 32px;
    }
    
    .hero-overlay p {
        font-size: 18px;
    }
    
    .welcome-section h2,
    .programs-section h2,
    .tours-section h2,
    .blogs-section h2,
    .recruiters-section h2,
    .reviews-section h2 {
        font-size: 28px;
    }
    
    .reasons-grid,
    .programs-grid,
    .tours-grid,
    .blogs-grid {
        grid-template-columns: 1fr;
    }
    
    .carousel-container {
        padding: 0 50px;
    }
    
    .carousel-arrow {
        width: 38px;
        height: 38px;
        font-size: 16px;
    }
    
    .review-card {
        padding: 25px;
    }
    
    .review-text {
        font-size: 15px;
    }
}

/* Mobile Phones (480px and below) */
@media (max-width: 480px) {
    .top-bar {
        font-size: 11px;
    }
    
    .pgdm-admission {
        order: 3;
        width: 100%;
    }
    
    .logo img {
        height: 50px;
    }
    
    .hero-image {
        height: 350px;
    }
    
    .hero-overlay h1 {
        font-size: 24px;
    }
    
    .hero-overlay p {
        font-size: 16px;
    }
    
    .welcome-section,
    .reasons-section,
    .programs-section,
    .tours-section,
    .blogs-section,
    .recruiters-section,
    .reviews-section,
    .study-bangalore-section {
        padding: 50px 15px;
    }
    
    .welcome-section h2,
    .programs-section h2,
    .tours-section h2,
    .blogs-section h2,
    .recruiters-section h2,
    .reviews-section h2 {
        font-size: 24px;
    }
    
    .reasons-header h2 {
        font-size: 24px;
    }
    
    .reason-card,
    .review-card {
        padding: 25px 20px;
    }
    
    .tabs {
        gap: 10px;
    }
    
    .tab-button {
        padding: 10px 20px;
        font-size: 14px;
    }
    
    .recruiters-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .carousel-container {
        padding: 0 40px;
    }
    
    .carousel-arrow {
        width: 35px;
        height: 35px;
    }
    
    .review-author {
        flex-direction: column;
        text-align: center;
    }
    
    .study-bangalore-section h2 {
        font-size: 28px;
    }
    
    .study-bangalore-section p {
        font-size: 16px;
    }
    
    .footer-container {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

/* Extra Small Devices (360px and below) */
@media (max-width: 360px) {
    .hero-overlay h1 {
        font-size: 20px;
    }
    
    .hero-overlay p {
        font-size: 14px;
    }
    
    .section-description {
        font-size: 14px;
    }
}

/* Print Styles */
@media print {
    .top-bar,
    header,
    .mobile-menu-toggle,
    .tabs,
    .apply-btn,
    .read-more,
    .carousel-arrow,
    .carousel-dots,
    footer {
        display: none;
    }
}
